Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please help me put this in order!! THANKYOU!! Create a program in Python that will read in a list of test scores from the user
Please help me put this in order!! THANKYOU!!
Create a program in Python 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). 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.
cont="Y" 3 while cont=="y": 5 cont=input("Do you want to continue? y or n:") 14 # get input from the user [Choose] print("The scores were") 15 V total=0 Choose ) >
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started