subject
Engineering, 22.11.2019 21:31 Solany6527

Using 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 called getdata to read and store data into two arrays, a function called average that is used to calculate the average test score and grade, and a function called printresults to output the results. the student names should be to the left with a width of 10 columns. the test scores should be to the right with a width of 5 columns. have your program also output the class average on a line after the output.
3 serperate arrays should be used
and it should read from a file
ive used some void functions two dimensional arrays to read numbers from a text file but im getting a lot of errors i know setw needs to be used also

ansver
Answers: 1

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, keigleyhannah30
Aplate clutch has a single pair of mating friction surfaces 250-mm od by 175-mm id. the mean value of the coefficient of friction is 0.30, and the actuating force is 4 kn. a) find the maximum pressure and the torque capacity using the uniform-wear model. b) find the maximum pressure and the torque capacity using the uniform-pressure model.
Answers: 3
image
Engineering, 04.07.2019 18:10, selenamr
Ifa component is made of two or more materials with different modulus of elasticity (e), it is called a composite member and we calculate the factor·n". mention the formula for calculating n". also, ifn> 1, explain what will happen to the 1. transformed. gi) ifn 1, what will happen to the material when transformed material when
Answers: 1
image
Engineering, 04.07.2019 18:20, kendrawalraven
The characteristic roots of a dynamic system are: 1.7920 1.8160 i, -1.7920 1.8160 i, -0.4160 what is the order of this system? what are the settling time and damping ratio of the system?
Answers: 3
image
Engineering, 04.07.2019 19:10, alex6toes
What are the major differences between injection molding and extrusion?
Answers: 2
You know the right answer?
Using three arrays: a one-dimensional array to store the students’ names, a (parallel) two-dimensio...

Questions in other subjects:

Konu
Chemistry, 19.02.2021 01:20