Home / Expert Answers / Computer Science / in-this-assignment-you-have-to-write-a-program-in-c-to-write-a-program-that-calculates-the-total-pa604

(Solved): In this Assignment you have to write a program in C++ to Write a program that calculates the total ...



In this Assignment you have to write a program in C++ to Write a program that calculates the total and average of a group of test scores, where the lowest score in the group is dropped. It should use the following functions: • getScore() – (Function with no arguments and returns values) This function should ask the user to enter score and then return that value as an integer. Input Validation: Do not accept test scores lower than 0 or higher than 100. • calTotal() – (Function with no arguments and returns values) This function should calculate total of the five scores. getScore() function should be called five times to read score five times and calculate total of all the five sores and then return that value as a integer. • calAverage() – (Function with arguments and returns values) This function should calculate the avarage of the five scores. getTotal() function should be called by displayData() and then return that value as a double. • displayData() – (Function with no arguments and no returns values) This function should display the total score and average score. Output: Enter score 1: 60 Enter score 2: 70 Enter score 3: 80 Enter score 4: 90 Enter score 5: 90 Total Score = 390 Average Score = 78



We have an Answer from Expert

View Expert Answer

Expert Answer



We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe