Your lecture wishes to store the exam marks for java,and perform an analysis of the marks.The marks are expressed as a percentage.There are 15 students that wrote the exam. Write the java program that will enable her to:
-input the marks for each student and store in an array called Supp.The input must be validated befoe being stored
-Determine and display the highest and lowest mark.
-Determine and display the average mark for the supplementary exam.
-Determine and display the mean and median(mean is calculated as the average of the lowest and highest marks)
E.g input:15 27 38 2 98 42 87 92 99 13 5 72 67 2 1
Output:
highest:99
lowest:1
median:38
average:44
mean:50
Comments
Leave a comment