Question: (CO 4 and 5) Create a program that will read in a list of test scores from the user and add them to a list.

(CO 4 and 5) Create a program that will read in a list of test scores from the user and add them to a list. Ask the user in between each score if they want to continue (y/n). Display all of the scores entered and the total score at the end. Sample output:

Welcome to the Test score Program

Add score: 88.45

Do you want to continue? y or n: y

Add score: 91.2

Do you want to continue? y or n: y

Add score: 77.22

Do you want to continue? y or n: n

The scores were: [88.45, 91.2, 77.22]

Total score: 256.87

Specifications: The program should accept decimal entries like 52.31 and 15.5. Assume the user will enter valid data. The program should round the results to a maximum of two decimal places.

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!