Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Average of Grades Write a program with a 'while' loop that asks the user to enter a series of test grades in the range 0

image text in transcribed

Average of Grades Write a program with a 'while' loop that asks the user to enter a series of test grades in the range 0 to 100. The user should enter a negative number to signal the end of grade input. After all the grades have been entered, the program should display the average of the grades. The average should be displayed to one decimal place. Sample execution: Python 3.43 Shell File Edit Shell Debug Options Window Help Python 3.4.3 (v3 .4.3:9b73f1c3e601, Feb 24 2015, 22:44:40) [MSC v.1600 64 bit (AM D64) on win32 Type "copyright", "credits" or "license 0" for more information RESTART Enter a test score,-1 to get the average: 97 Enter a test score, -1 to get the average: 96 Enter a test score, -1 to get the average: 88 Enter a test score,-1 to get the average: 74 Enter a test score, -1 to get the average: -1 The average for all the grades is: 88.8 Ln:11 Col:4

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

Spomenik Monument Database

Authors: Donald Niebyl, FUEL, Damon Murray, Stephen Sorrell

1st Edition

0995745536, 978-0995745537

More Books

Students also viewed these Databases questions

Question

Give feedback effectively and receive it appropriately.

Answered: 1 week ago

Question

Prepare a constructive performance appraisal.

Answered: 1 week ago