Answered step by step
Verified Expert Solution
Link Copied!

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, Program7-Template.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 Program7-template.py file from Blackboard and rename it as
Program7.py.
Do not modify the main() function or the header of any function. You will not
receive credit for Program 7 if you do. Do not accept test scores lower than 0 or
higher than 100.
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 Program7-
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,
_Program7. Copy your source code and the output file to
the folder. Zip the folder, as a .zip file, and upload it to Blackboard.
Run 1: 99,54,67,89,78,100
Run 2: 63,99,53,100,96,42
Run 3: 90,87,55,80,95,85 python

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

Oracle Database Administration The Essential Reference

Authors: Brian Laskey, David Kreines

1st Edition

1565925165, 978-1565925168

More Books

Students also viewed these Databases questions

Question

What lessons in intervention design, does this case represent?

Answered: 1 week ago