Page 1 of 1

c++ problem use functions Write a function that accepts 4 value parameters that are figure skating judge scores and retu

Posted: Sun Jul 10, 2022 11:30 am
by answerhappygod
c++ problem use functions
Write a function that accepts 4 value parameters that are figureskating judge scores and returns two values as referenceparameters: (1) The mean score after the lowest score has beenremoved, and (2) the mean score after the highest scorehas been removed.For example, suppose the 4 scores were 6.2, 9.4, 5.7, and8.8.For part #1, the 5.7 (low) would be dropped, and the mean would be(6.2 + 9.4 + 8.8) / 3, or 8.13.For part #2, the 9.4 (high) would be dropped, and the mean would be(6.2 + 5.7 + 8.8) / 3, or 6.90.Create a program that will call the function to demonstrate itscorrectness. Have the main program display the resultsusing 2 places after the decimal.