Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program that calculates and displays the average of a group of test scores, all integers, after the lowest score in the group has
Write a program that calculates and displays the average of a group of test scores, all
integers, after the lowest score in the group has been dropped. There are six test
scores in the group. Use the template, ProgramTemplate.py to complete this
programming assignment.
The program must contain only the following functions in addition to the main:
getScore int should ask the user for a test score and return it to the calling
function. This function should be called by the main function once for each of the
six scores to be entered by the user.
calcAverage float should calculate and return the average of the five highest
scores. This function should be called only once by the main function and should
be passed the six scores and the lowest test score.
findLowest int should find and return the lowest of the six scores passed to it It
must be called only once by the main function, which uses it to determine which of
the six scores to drop. This function must have only one return statement and
no logical operators.
printAverage void should be called by the main function only once to display
the lowest test dropped and the average of the test scores. The function should be
called by the main function with the lowest test score and the average score as
arguments.
Download the Programtemplate.py file from Blackboard and rename it as
Programpy
Do not modify the main function or the header of any function. You will not
receive credit for Program if you do Do not accept test scores lower than or
higher than
Do not use any global variables. You will not get credit for the program if you do
Run the program three times with the data below and save the output as Program
output.py Do a "Save As in the Python Shell Window and it will save as a py file.
See Appendix B of your Textbook for more details Create a folder named,
Program Copy your source code and the output file to
the folder. Zip the folder, as a zip file, and upload it to Blackboard.
Run :
Run :
Run : python
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started