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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply