Write a program that will ask the user to enter 4 quiz


Your problem is as follows:

Write a program that will ask the user to enter 4 quiz scores for 3 students.  You will need to fine the lowest quiz grade and drop it out when you calculate the average.

You will need to display all 4 quiz scores for each student as well as the lowest score and the average. Don't forget to validate the scores when you get them. Don't forget to drop the lowest score in your calculation.

You can assume that all quizzes will be out of 10pts.

Requirements:

- Need to create a 2D array for the scores

- Need 2 1D arrays for lowest score and average

Input:

- Quiz scores for each student

EX:

7      8     3      9

6      7     4      8

9      5     3      3

Output:

- All four scores, the lowest, and the average score

EX:

Q1       Q2     Q3    Q4     Low   Avg

7          8       3       9        3      8.0

6          7       4       8        4      7.0

9          5       3       3        3      5.7

Functions:

- intfindMin(int student, int scores[3][4])

  • Finds the minimum quiz score for any given student
  • Returns the minimum

- void printTable(int scores[3][4], int min[3], intavg[3])

  • Prints the output to the screen

- float getAverage(int student, int min, int scores[3][4])

  • finds the average of the 3 quiz scores for a given student
  • ignores the minimum score
  • returns the average

You must use the functions EXACTLY. And remember: Be sure to ERROR CHECK.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Write a program that will ask the user to enter 4 quiz
Reference No:- TGS01591053

Expected delivery within 24 Hours