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.

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter2: Formatting Workbook Text And Data
Section: Chapter Questions
Problem 3.10CP
icon
Related questions
Question

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
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
Transcribed Image 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
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning