I'm having a problem in my c++ course, here is my assignment:
This chapter's program asks you to utilize a multi-dimensional array.
Read in from input, where every 6th row represents a new student's grades.
Row 1 is attendance, which is out of 10 points, Row 2 is homework, which is out of 30 points.
Row 3 is quizzes, which is out of 20 points, Row 4 is midterm which is out of 15 points.
Row 5 is Final, which is out of 25 points.
So, the first position in the array, aryData will hold the value out of 10 points,
aryData will be the value out of 30 points, etc..
First, read in all of the data into a multidimensional array. Then, call a function that you send the array to and calculate the average of each grade type, such as attendance average is 8, homework average is 27, etc... and output it to the screen.
Next, call a function that you send the array to and calculate the average grade for the entire class.
Output what the average is for the entire class.
So as an example...
70 + 54
Attendance Avg: 7.5
Homework Avg: 17.5
Quizzes Avg: 9
Midterm Avg: 9
Final Avg: 19
Student Average: 62
At least 5 comments
It should compile
It should give the correct output as defined
I need to know what a function would look like that added 0,0 and 5,0 and divided it by the total possible score to get average. I'm taking online course and my instructor takes days to answer
multidimensional array functions
Post a Reply
|Oldest Newest Rating|
Used in many types of software including music players, video games, and many large scale applications.
|Bucky Roberts Administrator|