Hello Everyone. This simple
java program that calculates average scores without using sentinel.
1) The user is asked how many courses will be entered at the start.
2) There is a condition that the number of courses can't be more than 4. If more than 4 courses are entered, the program terminates. The "if condition" at Line 17 checks that.
3) Is there any way that if more than 4 courses are entered entered, the program goes back to the line 14, instead of terminating?
The program runs fine but I want it to go back to Line 14 and again ask user to enter the number of courses, whenver a user enters and "invalid" value. Please help.