How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask ATLPROG Your Own Question

ATLPROG
ATLPROG, Computer Software Engineer
Category: Programming
Satisfied Customers: 7677
Experience:  MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
44910485
Type Your Programming Question Here...
ATLPROG is online now
A new question is answered every 9 seconds

Write a program that a C++ program that can be used to determine

Customer Question

"Write a program that a C++ program that can be used to determine grades at the end of the semester. For each student, who is identified by an integer number between 1 and 60, four examination grades must be kept. Additionally, two final grades must be computed. The first grade average is simply the average of all four grades. The second grade average is computed by weighting the four grades as follows: the first grade gets a weight of 0.2, the second grade gets a weight of 0.3, the third grade gets a weight of 0.3 and the fourth grade gets a weight of 0.2; that is computed as:
0.2*grade1 + 0.3*grade2 + 0.3*grade3 + 0.2*grade4
Using this information, you are to construct a 60*7 two dimensional array, in which the first column is used for the student number, the next four columns for the grades and the last two columns for the computed final grades. The output of the program should be a display of the data in the completed array.
For the test purposes, the following table is provided:
Student Grade 1 Grade 2 Grade 3 Grade 4
---------------------------------------
1 100 100 100 100
2 100 0 100 0
3 82 94 73 86
4 64 74 84 94
5 94 84 74 64
The program should print the grade matrix including the averages. Then it should calculate the mean and standard deviation for both averages for the class and prints the results.
Program Organization
The main() routine should declare and populate the array with the test data shown above. It should then
call a function, passing in the array as a parameter. The function should perform the calculations and print
the result.
heres what i got
#include
#include
using namespace std;
void printarray (int [ ][5]);
int main ( )
{
cout << "Student" << setw(12) << "Grade 1"<< setw(15) << "Grade 2"<< setw(15)<<"Grade 3"<< setw(15)<< "Grade 4"<< setw(15)<< "Average 1"<< setw(15)<<"Average 2"<<endl;
int array1 [5] [5] = { {1, 100, 100, 100, 100}, {2, 100, 0, 100, 0},{3, 82, 94, 73, 86},{4, 64, 74, 84, 94},{5, 94, 84, 74, 64}};
cout<<printarray (array1);
return 0;
}
void printarray (int a[ ] [5] )
{
for(int c=0; c<5; c++)
cout<<a;
}
Submitted: 1 year ago.
Category: Programming
Customer: replied 1 year ago.
#include
#include
using namespace std;
void printarray (int [ ][5]);
int main ( )
{cout << "Student" << setw(12) << "Grade 1"<< setw(15) << "Grade 2"<< setw(15)<<"Grade 3"<< setw(15)<< "Grade 4"<< setw(15)<< "Average 1"<< setw(15)<<"Average 2"<<endl;int array1 [5] [5] = { {1, 100, 100, 100, 100}, {2, 100, 0, 100, 0},{3, 82, 94, 73, 86},{4, 64, 74, 84, 94},{5, 94, 84, 74, 64}};
cout<<printarray (array1);return 0;
}
void printarray (int a[ ] [5] )
{
for(int c=0; c<5; c++)
cout<<a;
}
Expert:  ATLPROG replied 1 year ago.
hello by when you need this done?
Customer: replied 1 year ago.
tonight before 1130
Expert:  ATLPROG replied 1 year ago.
Can you please go to www.wikisend.com and upload your cpp file ? Once you do that you will get a page that has the "File ID" and "Download Link". Copy the "Download Link" or "File ID" and please paste it in your reply here.
Customer: replied 1 year ago.
360834http://wikisend.com/download/360834/main.cpp