- Create a forever loop that will keep asking a user the following question:
- What grade did you get on your Java test?
- If the user answers with a grade that is bigger or equal to 90 then
- print “Good job, you can take a good rest and play your video games all day long”.
- stop the loop.
- If the user answers with a grade that is between 80 to 90 then
- print “Not bad, but I am sure you can do better. Why don’t you study a little bit more and retake the test.”
- If the user answers with a grade that is between 70 to 80 then
- print “I think you need to study a lot harder and retake the test.”
- If the user answers with a grade that is lower than 70 then
- print “All right you are grounded, no video games for 1 year and no computer”.
- stop the loop.
- In the above exercise, you should only stop the loop when the user get above 90 or below 70.