Question: Write a complete C++ program that repeatedly prompts the user to enter a student's score until -1 is entered. Upon reading -1 the program should
Write a complete C++ program that repeatedly prompts the user to enter a student's score until -1 is entered. Upon reading -1 the program should stop reading students' scores. It then displays the total number of students entered and the average score of all the students. Use proper programming styles (e.g. -add comments; indent and align the statements). Sample Run: Enter a score for student #1: 80 Enter a score for student #2: 70 Enter a score for student #3: 60 Enter a score for student #4: -1 Total number of students entered = 3 Average score = 70 #include #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
