For this assigrment, you will wrise a program that requests the quiz scorei for 7 students by nante. The prograns comput
Posted: Thu Jul 14, 2022 2:28 pm
For this assigrment, you will wrise a program that requests the quiz scorei for 7 students by nante. The prograns computes the arerage score and determines the student with the highest score. The students in this class ace wenry, fdward, lahe, kary, flitabeth, lames, and Charles. mante and fils the scores array. This procedure must use a loop. get. Average takes Mcores as an in parameter and returns the average in an out parameter it must use a loop to compute the sum of the score-1. gethighindex ahs takes sceres as an in parameter and returns the index (1-7) of the student with the highest scoee. This peocedure will require an id statement inside a loop. Hints 1. This program requires the use of paraliel arrays as described in chapter 7 . 2. Lessens a7 and ss have esamples of ieputing values into an array and looping through those values. You will perform similar actions for this assignment. 3. If two students are tied for the highest score, vour program only needs to display one of them, 4. The debug. Iab Co+ program in lesson 7 includes a function which returns the index of the highest sales. The gettighindex procedure is similar, Sample Output kinput in BOLD) Piease enter the score for Henry 73 Please enter the score for Edward เคน.1 Piease enter the score for Jane 68 Please enter the scoee for Mary 95 Please enter the score for Elizabeth 77 Please enter the score for James 46 Pease enter the score far Charles 83 The average score is 74.7143 The Nigh scare was Mary with a 95 Extra Credit (10 Points) For extra credit, modify your program so that it also displays the name and score for the student with the second highest score. The average score is 74.7143 The high score was Mary with a 95 The next highest score was Charles with a 83 You may either include the extra credit in your initial submission, or in an additional submission.