Question: PLEASE HELP ME PUT THE ANSWER CHOICES IN THE CORRECT ORDER TO CREATE THE PROGRAM(CO 4 and 5) Create a program that will read in
PLEASE HELP ME PUT THE ANSWER CHOICES IN THE CORRECT ORDER TO CREATE THE PROGRAM(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.
Using the code below, put the code in the proper order
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.
Group of answer choices
cont="y"
while cont=="y":
# display the results
print("Total score:", total)
print("Welcome to the Test score Program")
total+=item
cont=input("Do you want to continue? y or n: ")
# get input from the user
# display a welcome message
total = round(total, 2)
scoreList.append(item)
total=0
print(scoreList)
item = float(input("Add score: "))
scoreList=[]
print("The scores were: ")
total=0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
