##### Read the function definitions of the two functions: “compute_st_ave” and “compute_quiz_ave”. Write a function that calculates...

Read the function definitions of the two functions: “compute_st_ave” and “compute_quiz_ave”.

Write a function that calculates the average of student averages. (Student averages are stored in st_ave [5] array). Include a statement to print this average on the screen.

Declare this function above the “main” function where other functions are declared.

In the main program, invoke this function.

//Reads quiz scores for each student into the two-dimensional array grade //(but the input code is not shown in this display). Computes the average //score for each student and the average score for each quiz. Displays //the quiz scores and the averages.

#include “stdafx.h”

#include <iostream>

#include <iomanip>

const int NUMBER_STUDENTS = 5, NUMBER_QUIZZES = 3;

void compute_st_ave(const int grade[][NUMBER_QUIZZES], double st_ave[]);

//Precondition: Global constants NUMBER_STUDENTS and NUMBER_QUIZZES

//are the dimensions of the array grade. Each of the indexed variables

//grade[st_num-1, quiz_num-1] contains the score for student st_num on //quiz quiz_num.

//Postcondition: Each st_ave[st_num-1] contains the average for student

//number stu_num.

void compute_quiz_ave(const int grade[][NUMBER_QUIZZES], double quiz_ave[]);

//Precondition: Global constants NUMBER_STUDENTS and NUMBER_QUIZZES

//are the dimensions of the array grade. Each of the indexed variables

//grade[st_num-1, quiz_num-1] contains the score for student st_num on //quiz quiz_num.

//Postcondition: Each quiz_ave[quiz_num-1] contains the average for quiz //number quiz_num.

void display(const int grade[][NUMBER_QUIZZES], const double st_ave[], const double quiz_ave[]);

//Precondition: Global constants NUMBER_STUDENTS and NUMBER_QUIZZES are //the dimensions of the array grade. Each of the indexed variables //grade[st_num-1, quiz_num-1] contains the score for student st_num on //quiz quiz_num. Each st_ave[st_num-1] contains the average for student //stu_num. Each quiz_ave[quiz_num -1] contains the average for quiz //number quiz_num.

//Postcondition: All the data in grade, st_ave, and quiz_ave has been //output.

int main( )

{

using namespace std;

double st_ave[NUMBER_STUDENTS];

double quiz_ave[NUMBER_QUIZZES];

//The code for filling the array grade goes here.

for (int st_num = 1; st_num <= NUMBER_STUDENTS; st_num++)

{

for (int quiz_num = 1; quiz_num <= NUMBER_QUIZZES; quiz_num++)

{cout << “Enter the grade [” << st_num <<”][“<<quiz_num<< “]

=”;

}

}

system (“pause”);

return 0;

}

void compute_st_ave(const int grade[][NUMBER_QUIZZES], double st_ave[])

{

for (int st_num = 1; st_num <= NUMBER_STUDENTS; st_num++)

{//Process one st_num:

double sum = 0;

for (int quiz_num = 1; quiz_num <= NUMBER_QUIZZES; quiz_num++)

sum = sum + grade[st_num -1][quiz_num -1];

//sum contains the sum of the quiz scores for student number

//st_num.

st_ave[st_num -1] = sum/NUMBER_QUIZZES;

//Average for student st_num is the value of st_ave[st_num-1]

}

}

void compute_quiz_ave(const int grade[][NUMBER_QUIZZES], double quiz_ave[])

{

for (int quiz_num = 1; quiz_num <= NUMBER_QUIZZES; quiz_num++)

{//Process one quiz (for all students):

double sum = 0;

for (int st_num = 1; st_num <= NUMBER_STUDENTS; st_num++)

sum = sum + grade[st_num -1][quiz_num -1];

//sum contains the sum of all student scores on quiz number

//quiz_num.

quiz_ave[quiz_num -1] = sum/NUMBER_STUDENTS;

//Average for quiz quiz_num is the value of quiz_ave[quiz_num-1]

}

}

//Uses iostream and iomanip:

const double st_ave[], const double quiz_ave[])

{

using namespace std;

cout.setf(ios::fixed);

cout.setf(ios::showpoint);

cout.precision(1);

cout << setw(10) << "Student"

<< setw(5) << "Ave"

<< setw(15) << "Quizzes\n";

for (int st_num = 1; st_num <= NUMBER_STUDENTS; st_num++)

{//Display for one st_num:

cout << setw(10) << st_num

<< setw(5) << st_ave[st_num-1] << " ";

for (int quiz_num = 1; quiz_num <= NUMBER_QUIZZES; quiz_num++)

cout << setw(5) << grade[st_num -1][quiz_num -1];

cout << endl;

}

cout << "Quiz averages = ";

for (int quiz_num = 1; quiz_num <= NUMBER_QUIZZES; quiz_num++)

cout << setw(5) << quiz_ave[quiz_num -1];

cout << endl;

}

In: Computer Science

##### consider the following learning objective: at the end of this training, employee should be able to...

consider the following learning objective: at the end of this training, employee should be able to use powerpoint to creat formal presentation on an assigned topic.
which training method would you recommend for this objective?

In: Operations Management

##### Given two unsorted arrays of integers. a) Write a pseudocode algorithm which will output only the...

Given two unsorted arrays of integers.
a) Write a pseudocode algorithm which will output only the integers not common to both arrays. When writing pseudocode, consider that no implementation for data structures or algorithms exist.
b) Implement your algorithm in Modern C++

In: Computer Science

##### In this activity, we are going to implement the previous algorithm in Java. Just in case,...

In this activity, we are going to implement the previous algorithm in Java. Just in case, here is problem again: This program calculates and displays a person's body mass index (BMI). The BMI is calculated as the weight times 703 divided by the height squared where the weight is measured in pounds and the height in inches. The program should display a message indicating whether the person has optimal weight (BMI between 18.5 and 25), is underweight (BMI is less than 18.5), or overweight (BMI is greater than 25).

Important considerations:

1. There are several ways to design and implement this algorithm; however, for the purpose of this exercise and for an automatic grading, we are going to use the algorithm developed in the previous exercise.

2. Because of the softchalk limitation about the uses of double quotation marks, and for uniformity, the String objects have been created for you.

3. For the calculation, you must use the Math library for the exponentiation.

4. The curly braces for the if-else statement blocks are located in separate lines for uniformity.

public static void main(String[] args) {

// TODO Auto-generated method stub

Scanner scan = new Scanner(System.in);

double weight;

double height;

double bmi;

String stWeight = "Enter your weight (pounds) ";

String stHeight = "Enter your height (inches) ";

String stBMI = "Your BMI is ";

String stOver = "You are considered Overweight";

String stOptimal = "You have optimal weight";

String stUnder = "You are considered Underweight";

Fill in: ALL OF THE BLANKS HAVE TO BE FILLED IN!!

//Input prompt the user for weight and height in that order

 System.out.println(stWeight); System.out.println(stHeight);

//Calculate BMI

// Display results of calculation and the message in different lines

//Overweight

//Optimal Weight

//Underweight

}

In: Computer Science

##### Case studies offer a practical problem for which you supply a written solution. There is not...

Case studies offer a practical problem for which you supply a written solution. There is not always a specific right or wrong answer to these cases. They are intended to encourage you to review the chapter material and delve deeper into the topics you have learned.

One of the primary reasons networks were built was to facilitate the sharing of information. Organizations want to share files and printers in Windows, Linux,and Mac OS X. However, organizations need to ensure they maintain secure access to shared files. This is often accomplished using user and group accounts, with assigned permissions. These permissions determine who can access the shared resources and what type of access they have.

In: Computer Science

##### WRITE A RESPONSE TO THE FOLLOWING BlackRock lowered its global growth outlook, based on expectations that...

WRITE A RESPONSE TO THE FOLLOWING

BlackRock lowered its global growth outlook, based on expectations that trade and geopolitical frictions will continue. The outlook for U.S stocks remains positive, and the firm upgraded European stocks from negative to neutral. Bolvin believes that tariffs are making costs higher for corporations and forcing some companies to change their supply chains altogether. The U.S economy is adjusted for a lowered pace of growth, at about 1.8% in the second half of the year. The firm said central banks are responding to the weaker outlook, and are loosening policy, creating a constructive environment for U.S. and European stocks. The firm said central banks are responding to the weaker outlook, and are loosening policy, creating a constructive environment for U.S. and European stocks. This outlook weakens the economy as a result of the geopolitical and trade frictions. In turn it has increases the potential for easier policy by central banks, including the Federal Reserve and European Central Bank. Bolvin, head of the BlackRock Investment Institute, states “China has become less positive , as a result we were expecting in Europe is not in the cards anymore. It is a downgrade in the broader global picture, and it is directly driven by European and China view.” The firm believes that it is risky but central banks are providing a backstop. BlackRock upgraded emerging market debt but no longer favors emerging market equities, lowering them to neutral from overweight as the outlook for global growth dimmed. The BlackRock investment Institute has downgraded its global growth outlook for the second half, and while it is still sees a good environment for U.S. stocks, it no longer favors market equities. There is a lowered risk of recession, based on that the market looks constructive for the next few months. For that reason, inflation could be a surprise the markets aren’t expecting, at some point after this year.

In: Finance

In: Finance

##### Glucose Metabolism can be represented by the following chemical reaction: C6H12o^(aq) + 6 02 (g) --------------...

Glucose Metabolism can be represented by the following chemical reaction:

C6H12o^(aq) + 6 02 (g) -------------- 6C02 (g) + 6 H20 (i)

H for the reaction is -2837 kj/mole.

A: Is this reaction endothermic or exothermic?

B: Write an expressin for the equilibruim constant is very large, would you expect this reaction to be fast or slow?

C: Given that the value of equilibrium constant is very large, would you expect this reaction to be fast or slow?

D: Explain the effect on equilibrium of

: Increasing temperature

: Increasing pressure by decreasing the volume

: Decreasing concentration of oxygen

: Increasing the concentration of carbon dioxide

In: Chemistry

##### What is the importance of SCS in terms of international trade? What do you think about...

What is the importance of SCS in terms of international trade?

What do you think about US military presence in the SCS region?

Some people believe that COVID-19 is starting a new era in international relations and business. US global leadership role will go down, while China's up. What do you guys think

In: Economics

##### Ann, an employee of GRP, Inc., negligently struck Bob, who was walking across an intersection in...

Ann, an employee of GRP, Inc., negligently struck Bob, who was walking across an intersection in front of GRP, Inc.'s place of business. Ann was driving a company car, which she had permission to operate 24 hours a day. Fortunately, Bob was not severely injured. He did, however, sustain a broken leg. As a result of Bob's injuries, he was unable to perform the essential functions of his job as an Assembly Line Worker at ABC, Inc.. That company could not accommodate Bob's six - nine week recovery for the broken leg (the company employed less than thirty employees).

Bob is suing both Ann and her employer, GRP, Inc., for negligence. As it turns out, Ann's driver's license was revoked (convictions for DUI's). GRP, Inc. has since terminated Ann's employment, contending she failed to report the loss of her driver's license. A corporate policy, which she signs off on each year, requires all employees to notify GRP, Inc. about even minor traffic offenses if such employees are given use of corporate vehicles. GRP, Inc. denies it has any liability for Ann's alleged negligence. BoB is maintaining that GRP, Inc., which obviously has "deeper pockets" than Ann, is responsible for his pain and suffering, job loss and related damages totaling $50,000.00 or more.Analyze Bob's claims for both.What are the company's defenses against such claims? Who wins? Why / why not? In: Operations Management ##### Python Language: Similar to Project 3, write a program that loops a number from 1 to... Python Language: Similar to Project 3, write a program that loops a number from 1 to 10 thousand and keeps updating a count variable according to these rules: if the number is divisible by n1, increase count by 1 if the number is divisible by n2, increase count by 2 if the number is divisible by n3, increase count by 3 if none of the above conditions match for the number, increase count by the number.  Before the loop begins, count should be set to 0. Once the loop is complete, print the value of count. n1, n2, and n3 should be set as follows: n1 = 11 n2 = 64 n3 = 107 Just like the previous projects, the value of a=1, the value of b=2, ..., the value of z=26. The program must produce one numeric output (it should be the value of count). In: Computer Science ##### Draw an ER diagram with these attributes ( ER diagram for SQL for a library database)... Draw an ER diagram with these attributes ( ER diagram for SQL for a library database) DRAW ER DIAGRAM AS ONE FULL LIBRARY SYSTEM, NOT DIFFERENT FOR EACH ATTRIBUTE. Attributes : Customer • Cust_ID: key identifier, required, simple, single valued • Cust_Name{ first name, last name}: Key Identifier, simple;composite, multivaried • Address{street, city,zip,state}: Customer address, required, composite, single can be derived from zip • (placeholder, there should be another attribute here to represent the books taken out by the customer. Not sure.) Inventory • Book_ID: Key identifier, required, simple single valued • Book_Name: Key identifier, required, simple, single-valued • Genre: required: simple; single valued • Publication_Date: required; simple; single valued Transaction • Book_ID: Key identifier, required, simple, single valued • Rental_Date: required, simple, single valued • Rental cost: required, simple, single valued • Rental_Date: required, simple, single valued In: Computer Science ##### The guarantee of the product is also clearly seen on the website of under armour (... The guarantee of the product is also clearly seen on the website of under armour ( 280 words) In: Operations Management ##### Write a C++ program that prints out all of the command line arguments passed to the... Write a C++ program that prints out all of the command line arguments passed to the program. Each command line argument should be separated from the others with a comma and a space. If a command line argument ends in a comma, then another comma should NOT be added In: Computer Science ##### Cost of Goods Sold, Profit margin, and Net Income for a Manufacturing Company The following information... Cost of Goods Sold, Profit margin, and Net Income for a Manufacturing Company The following information is available for Gonzalez Manufacturing Company for the month ending July 31, 2016:  Cost of goods manufactured$254,840 Selling expenses 85,130 Administrative expenses 45,000 Sales 542,210 Finished goods inventory, July 1 61,270 Finished goods inventory, July 31 55,850

For the month ended July 31, 2016, determine Gonzalez's (a) cost of goods sold, (b) gross profit, and (c) net income.

Labels & Amount descriptions

Finished goods inventory, July 1, 2016

Finished goods inventory, July 31, 2016

Sales

Selling Expenses

Cost of finished goods available for sale

Cost of goods manufactured

Cost of goods sold

Gross profit

Net Income

 Gonzalez Manufacturing Company Cost of Goods Sold July 31, 2016  $(b)  Gonzalez Manufacturing Company Gross Profit July 31, 2016$ $(c)  Gonzalez Manufacturing Company Net Income July 31, 2016$_________ Operating expenses: $______ ______ Total operating expenses ______$______