Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

AWS Certified Database Study Guide Specialty DBS-C01 Exam

Authors: Matheus Arrais, Rene Martinez Bravet, Leonardo Ciccone, Angie Nobre Cocharero, Erika Kurauchi, Hugo Rozestraten

1st Edition

1119778956, 978-1119778950

More Books

Students also viewed these Databases questions

Question

2. Identify issues/causes for the apparent conflict.

Answered: 1 week ago