Question: C PROGRAMMING(Using arrays) In a gymnastics or diving competition, each contestant's score is calculated by dropping the lowest and highest scores and then adding the

 C PROGRAMMING(Using arrays) In a gymnastics or diving competition, each contestant's

score is calculated by dropping the lowest and highest scores and then

C PROGRAMMING(Using arrays)

In a gymnastics or diving competition, each contestant's score is calculated by dropping the lowest and highest scores and then adding the remaining scores. Write a program that allows the user to enter eight judges scores and then outputs the point received by the contestant. A judge awards point between 1 and 10, with 1 being the lowest and 10 being the highest. Input format Input consists of 8 scores separated by a space. Output format The first line of the output consists of the lowest score. The second line of the output consists of the highest score. The third line of the output consists of the total dropping the lowest and highest scores. The fourth line of the output prints the average. Code constraints Round off the output to two decimal places. Sample testcases Input 1 Output 1 9.1 9.0 8.9 8.8 9.4 7.9 8.6 Lowest score : 7.90 Highest score : 9.80 Total point : 53.80 Average : 8.97

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!