Question: The Program Complete programming exercise 6 - 7 on pages 3 2 9 ( 5 th edition ) of the text book. 7 . Test
The Program
Complete programming exercise on pages th edition of the text book.
Test Average and Grade
Write a program in pseudocode and 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:
Other Requirements
Round the average to one digit to the right of the decimal point. This should be done in the main procedure. Screenshot
Here's an example of what your program should look like:
Notes and Comments:
Module names in this class should be all lowercase with underscores between the words, not the author's CamelCase.
The function determinegrade :
Should only take one argument, and thus only one parameter. That argument should be a single numeric test score.
Should return the single letter grade that corresponds to the numeric test score that was passed in as an argument.
The function calcaverage :
Should take five arguments, and thus five parameters. There should be one argument for each of the five test scores.
Should return the average all five test scores.
Do not put your print statements inside of your function. Instead your functions should return the calculated value to the calling procedure probably main and the calling procedure will print the results. This is the opposite of what we did in chapter
All of your assignments must follow the coding standards rhocirc we discussed in class.
Be sure to turn in your assignment via the Blackboard site by the due datetime see below for full credit.
James Shoe
Enter test score #:
Enter test score #:
Enter test score #:
Enter test score #:
Enter test score #:
Results:
Test #: B
Test #: A
Test #: F
Test #: C
Test #: D
Average:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
