Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help. Thanks. Write a program (scores.py) that will take as input students' scores (the scores should be between 0-100), for a test and will

Please help. Thanks. image text in transcribed
Write a program (scores.py) that will take as input students' scores (the scores should be between 0-100), for a test and will calculate the minimum and maximum grade as well as the average of the class. 1. Note: You don't know in advance how many students participated in the test, so you will have to create a sentinel loop with your user, to determine when the input process will terminate. The user should be told to enter the number -1 to indicate the end of data entry. Here is what you need to include in your solution: -Get t the students' score (check it is between 0. 100) Compare with the min, max values so far and update them accordingly Calculate the total of the scores so far Compute the average - Display the minimum, maximum and average Hint: Initialize the min and max values to the first score provided. Check and update the current min and max values in each repetition. (Uses the same logic as the "running total" examples discussed in class)

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

Data Management Databases And Organizations

Authors: Richard T. Watson

2nd Edition

0471180742, 978-0471180746

More Books

Students also viewed these Databases questions