Assignment title: C++
Question
C++ Programming
Q
Please Write the Programme in (gcc) . Programs will be written in the C programming language The Important Topics: Lecture Outline: (the order of topics may change slightly as the course progresses) Week 1: Variables and integers Week 2: if-statements, else, conditions Week 3: real numbers, input Week 4: the while loop Week 5: the for loop Week 6: arrays and sorting Week 7: functions and parameters Week 8: strings Week 9: strings and text files Week 10: reading and writing to files Week 11: binary numbers Week 12: further topics and exam planning The Programme Must Work on (gcc) Software. or I will keep asking you for correction, Use only above topics and cods in this workAt a diving competition, the mark given to each diver is awarded as follows. There are a number of judges and each judge gives a mark and the final mark is found by leaving out the highest mark and the lowest mark and calculating the average of the rest. Write a C program that reads in the number of judges at the competition and then reads in a mark for each judge. Perform the necessary calculations and display the highest mark, the lowest
mark and the final mark. The following data checks must be carried out in the program:
a) the number of judges must be from 4 to 8
b) each judge can give a mark from 0.0 to 10.0 (a real number that may include fractions)
If an invalid amount is entered, the program must ask for an acceptable value to be entered instead.