subject

Write a program with array and functions to work on a student's test scores. This program has the following functions.
1. getTests() function allows user to enter 4 test scores of a student (decimal point values). Pass array declared in main.
2. toTotalTest() sums 4 tests and return the totalTest. Pass array to this function.
3.getAverage() computes the average of 4 tests and return average. Pass total to this function.
4. getHighest funds the highest test score of the 4 and returns highest. Pass array to this function.
5. getLowest() finds the smallest test score of the 4 and return lowest. Pass array to this function.
6. report() function will report the total score, average score, highest score and lowest score. This function does not return any value. You need to pass all the necessary information to this function or call other necessary functions in this function (instead of calling them in main()).

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 07:00, ayoismeisalex
Our primary purpouse as electricians is to do wich of the following core concepts? a: install electrical components in a way they can be upgraded b: install electrical equiptment in a way that reduces heat c: install electrical systems in a safe manner d: only b and c
Answers: 1
image
Computers and Technology, 22.06.2019 07:30, akluke6059
Events and conditions that happen within an organization that are somewhat easier to deal with when responding to change are called
Answers: 1
image
Computers and Technology, 23.06.2019 04:31, hargunk329
Q13 what function does a security certificate perform? a. creates user accounts b. scrambles data c. identifies users d. creates password policies e. provides file access
Answers: 1
image
Computers and Technology, 23.06.2019 06:40, euniceyi56
How many nibbles can be stored in a 16-bit word?
Answers: 1
You know the right answer?
Write a program with array and functions to work on a student's test scores. This program has the fo...

Questions in other subjects:

Konu
English, 27.11.2021 14:00
Konu
Mathematics, 27.11.2021 14:00
Konu
Mathematics, 27.11.2021 14:00
Konu
Mathematics, 27.11.2021 14:00
Konu
Physics, 27.11.2021 14:00