The data has been collected from UiTM students as a respondent to find out their confidence level in getting high marks for subject CSC415. The survey has been given to those students who are taking the subject for the current semester. The respondent will give a score from 1 to 5 only, where score 1 represents the lowest confidence level of getting good mark for the subject, while, score 5 represents the highest confidence level of getting good mark for the subject.
You are requested to write a Java program to do the following:
• input all the respondent scores
• make sure the program only reads the valid score number which is 1
to 5 only, other than that number, display the error message.
• the program will determine the total number of respondents for each score and overall number of respondents who are involved in
the survey.
• it also needs to calculate and display the average score result.
The input will continue until user chooses to stop entering the data.
Comments
Leave a comment