Enter name \n Mike ENTER Enter score 1 or a negative number to exit \n 90 ENTER Enter score 2 or a negative number to exit \n 50 ENTER Enter score 3 or a negative number to exit \n 66.4 ENTER Enter...


Ask the user for a name and for a list of test scores. Show the number of tests taken and the average. Allow the user to enter any number of scores and make the program end when a negative value is entered.


Enter name \n<br>Mike ENTER<br>Enter score 1 or a negative number to exit \n<br>90 ENTER<br>Enter score 2 or a negative number to exit \n<br>50 ENTER<br>Enter score 3 or a negative number to exit \n<br>66.4 ENTER<br>Enter score 4 or a negative number to exit \n<br>32 ENTER<br>Enter score 5 or a negative number to exit \n<br>87 ENTER<br>Enter score 6 or a negative number to exit \n<br>56 ENTER<br>Enter score 7 or a negative number to exit \n<br>55 ENTER<br>Enter score 8 or a negative number to exit \n<br>77 ENTER<br>Enter score 9 or a negative number to exit \n<br>99 ENTER<br>Enter score 10 or a negative number to exit \n<br>78 ENTER<br>Enter score 11 or a negative number to exit\n<br>100 ENTER<br>Enter score 12 or a negative number to exit\n<br>e ENTER<br>Enter score 13 or a negative number to exit \n<br>3 ENTER<br>Enter score 14 or a negative number to exit\n<br>-67 ENTER<br>Mike<br>--\n<br>--<br>Num tests taken: 13\n<br>Average: 61.e\n<br>

Extracted text: Enter name \n Mike ENTER Enter score 1 or a negative number to exit \n 90 ENTER Enter score 2 or a negative number to exit \n 50 ENTER Enter score 3 or a negative number to exit \n 66.4 ENTER Enter score 4 or a negative number to exit \n 32 ENTER Enter score 5 or a negative number to exit \n 87 ENTER Enter score 6 or a negative number to exit \n 56 ENTER Enter score 7 or a negative number to exit \n 55 ENTER Enter score 8 or a negative number to exit \n 77 ENTER Enter score 9 or a negative number to exit \n 99 ENTER Enter score 10 or a negative number to exit \n 78 ENTER Enter score 11 or a negative number to exit\n 100 ENTER Enter score 12 or a negative number to exit\n e ENTER Enter score 13 or a negative number to exit \n 3 ENTER Enter score 14 or a negative number to exit\n -67 ENTER Mike --\n -- Num tests taken: 13\n Average: 61.e\n

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here