Question: Write a segment of code to do the following: (8 marks) The user is required to enter the number of students in a class and

 Write a segment of code to do the following: (8 marks)

Write a segment of code to do the following: (8 marks) The user is required to enter the number of students in a class and the exam score for each student. The total score, and the average exam score are calculated and displayed. Note: The example shown below is for 5 students entered by the user. The user will then enter the exam score for each of the five students. Another example could be the user enters 10 students and the user would enter the exam score for each of the ten students. X CAUsers\mariell\Desktop\midterm 1112\Debug midterm 1112.exe Enter the number of students: 5 Enter score for student 1: 99.0 Enter score for student 2: 86.5 Enter score for student 3: 78.0 Enter score for student 4: 57.5 Enter score for student 5: 69.5 Total score: 390.50 Average exam score: 78.10 Press any key to continue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!