hey guys need help or some guidances please. Basically its a complicated looping and relational question.
Write a program to calculate te percentage score of the mark of the students.The program will read in any number of marks in integer, and print out the percentage score of the five categories. You should reject all the invalid marks from the input
The grade should follow the table below
mark grade
<50 fail
50-59 D
60-69 C
70-79 B
80-89 A
90-100 Distinction
sample output:
Any mark to enter?yes or no? : yes
please enter the mark : 55
Any mark to enter?yes or no? : yes
please enter the mark : 75
Any mark to enter?yes or no? : yes
please enter the mark : -5
Please enter valid mark between 0 and 100. <----- guide/help needed here
Any mark to enter?yes or no? : yes
please enter the mark : 85
Any mark to enter?yes or no? : yes
please enter the mark : 35
Any mark to enter?yes or no? : yes
please enter the mark : 65
Any mark to enter?yes or no? : yes
please enter the mark : 72
Any mark to enter?yes or no? : yes
please enter the mark : 44
Any mark to enter?yes or no? : yes
please enter the mark : 81
Any mark to enter?yes or no? : no
Total entry is 8 <------guide/help needed here
The percentage score in grade Fail is 37.5%
The percentage score in grade D is 12.5%
The percentage score in grade C is 12.5%
The percentage score in grade B is 37.5%
The percentage score in grade A is 37.5%
The percentage score in grade Distinction is 0%
thanks... i will be happy if anyone can give me help on this prog.