Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using the while loop write a program that does the following: Calculate the average of a series of homework grades (0 - 100) entered one

Using the while loop write a program that does the following:

Calculate the average of a series of homework grades (0 - 100) entered one at a time. In this case the lowest score will be dropped and the average computed with the remaining grades.

For example suppose you enter the following grades: 78, 85, 81, 90, 88, 93 and 97.

The average will be computed from the 6 grades 85, 81, 90, 88, 93 and 97. The low score of 78 will be dropped.

Output each grade (you can write it back out to the screen as each grade is entered), the dropped grade and the final average.

Run your program and show the output for the following two test cases:

CASE 1: Input grades 78, 85, 81, 90, 88, 93 and 97. CASE 2: Input grades 75, 80, 83, 86, 90, 93, 87 and 77.

Please use python and make it beginner friendly thanks!

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

Relational Database Design A Practical Approach

Authors: Marilyn Campbell

1st Edition

1587193175, 978-1587193170

More Books

Students also viewed these Databases questions

Question

6. Identify seven types of hidden histories.

Answered: 1 week ago

Question

What is the relationship between humans and nature?

Answered: 1 week ago