Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program to calculate students' average test scores and their grades You may assume the following input data Johnson 85 83 77 9176 Aniston

image text in transcribed

Write a program to calculate students' average test scores and their grades You may assume the following input data Johnson 85 83 77 9176 Aniston 80 90 95 93 48 Cooper 78 81 11 90 73 Gupta 92 83 30 69 87 Blair 23 45 96 38 59 Clark 60 85 45 39 67 Kennedy 77 31 52 74 83 Bronson 93 94 89 77 97 Sunny 79 85 28 93 82 Smith 85 72 49 75 63 Use three arrays: a one-dimensional array to store the students' names, a (parallel) two-dimensional array to store the test scores, and a parallel one-dimensional array to store grades Your program must contain at least the following functions: a function to read and store data into two arrays, a function to calculate the average test score and grade, and a function to output the results. Have your program also output the class average Sample Output CCAWIND Name Johnsorn Aniston Test1 Test 2 Test 3 Test4 Test5 Average Grade 85.00 83.00 77.00 91.00 76.00 80.00 90.00 95.00 93.00 48.00 78.00 81.00 11.00 90.00 73.00 92.00 83.00 30.00 69.00 87.00 23.00 45.00 96.00 38.00 59.00 60.00 85.00 45.00 39.00 67.00 77.00 31.00 52.00 74.00 83.00 93.00 94.00 89.00 77.00 97.00 79.00 85.00 28.00 93.00 82.00 85.00 72.00 49.00 75.00 63.00 82.40 81.20 66.60 72.20 52.20 59.20 63.40 90.00 73.40 68.80 ooper Blair lark Kennedy Bronson unny Smith lass average: 70.94 Press any key to continue.. . Hints Functions to be used: void gstRatalifstrsam& int, string n[], double tstbata[][6], int count); void void double tstRatal]I6], int count); double tsthatalI[6], char gr[], int count); void print (string n[], double tsthatal][6], char gr[], iat count)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Repairing And Querying Databases Under Aggregate Constraints

Authors: Sergio Flesca ,Filippo Furfaro ,Francesco Parisi

2011th Edition

146141640X, 978-1461416401

More Books

Students also viewed these Databases questions

Question

Group Size and Communication

Answered: 1 week ago

Question

Understanding Group Roles

Answered: 1 week ago