subject

Write a program that calculates the average of a group of test scores, where the lowest score in the group is dropped. It should use the following functions. The main program should create an array of size 5 and should call the function getScore() and calcAverage(), by passing the array in both the functions • void getScore(score, SIZE) – This function should ask the user for five test scores, validate it and store it in the array. • void calcAverage(score, SIZE) - This function should call findLowest() and get the lowest of five scores. After dropping the lowest score, it should calculate and display the average of the four highest scores. • int findLowest(score, SIZE)- This function should find and return the lowest of the five scores passed to it. • Function prototypes void getScore(int [], int); void calcAverage(int [], int); int findLowest(int [], int); Input Validation: Do not accept test scores lower than 0 or higher than 100

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:50
Write a car class having two private member variables called tank and speed. write public methods called pumpgas and gofast. the method pumpgas gets an integer for gas that must be pumped. that value needs to be added to tank (no more than 20 gallons). it must return the amount of gas that is purchased ($4 per gallon). the method gofast should increase the speed by 5 each time it is called.write a constructor for the above class that initialized both variables to zero.write a tostring to display both the tank and speed when the car is printed.modify the car class to implement the interface comparable and an interface called carinter having the public methods in carinter.write the main program to create an array of size 5 of type car. create 5 car objects having each location of the array to refer to one of the cars. test the pumpgas, gofast, equals method on the array items. write an enhanced loop to print all the car values (using a tostring written last time).write a generic method to find the minimum of four items. pass int, double, char, string and car objects to test this method.
Answers: 1
question
Computers and Technology, 23.06.2019 07:00
To produce a starlight effect in her photograph, lina should choose the filter for her camera.
Answers: 1
question
Computers and Technology, 23.06.2019 17:10
Ac++an of of pi. in , pi is by : pi = 4 – 4/3 + 4/5 – 4/7 + 4/9 - 4/11 + 4/13 - 4/15 + 4/17 . ., to pi (9 ). , if 5 to pi,be as : pi = 4 - 4/3 + 4/5 - 4/7 + 4/9 = 4 – 1. + 0.8 - 0. + 0. = 3.. atoofbe to pi?
Answers: 2
question
Computers and Technology, 23.06.2019 22:20
What is a programming method that provides for interactive modules to a website?
Answers: 1
You know the right answer?
Write a program that calculates the average of a group of test scores, where the lowest score in the...
Questions
question
Mathematics, 20.04.2021 04:50
question
Mathematics, 20.04.2021 04:50
question
Mathematics, 20.04.2021 04:50
question
Computers and Technology, 20.04.2021 04:50
question
Mathematics, 20.04.2021 05:00
Questions on the website: 13722360