Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program in python that asks the user to enter five test scores. The program should display a letter grade for each score and

Write a program in python that asks the user to enter five test scores. The program should display a letter grade for each score and the average test score. Design the following functions in the program:

calcAverageThis function should accept five test scores as arguments and return the average of the scores.

determineGradeThis function should accept a test score as an argument and return a letter grade for the score (as a String), based on the following grading scale: Score Letter Grade 90100 A 8089 B 7079 C 6069 D Below 60 F

Include function getValidScore is a function that has no passed parameters but prompts for, and reads, a single valid test score. A validation loop is used to only allow valid input for subsequent processing. The isValidScore function is used to test the users input for validity. Once a valid test score has been input, this valid test score is then returned to the calling module.

Include function isValidScore is a function that checks whether a single passed test score is in range (0 inclusive to 100 inclusive) and returns a Boolean indicating if it is valid (True if in range, False if out of range). Be sure to check for non-numeric input!

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

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions

Question

Discuss how frequently households trade securities.

Answered: 1 week ago