Help with Homework Problem
So I am running into a couple problems.
Here's part of my specs:
Now, you are to first prompt the user for his/her name and their classification (numeric) (1 = Freshman, 2 = Sophomore, …, 5 Graduate Student). You are to then print out his/her name and classification as follows:
This output is produced by Joe Schmuck (please use your name), who is a junior at UNF.
Note, JoeSchmuck is a String input and requires no conversion. ‘3’ is also a character that is inputted, but your Scanner object will take care of this for you.
Once this line is printed on the screen, you are to skip two lines (two blank lines). Then you are to prompt the user (me, again) for a number between 1 and 12.
Bad inputs: If the number the user submits does not lie between 1 and 12, you are to prompt the user to try again, such as providing the message, “Try Again. Enter a number between 1 and 12 inclusive and press Enter” and allow the misguided person (probably me again!) to re-enter another number. (This will require a loop). If the user fails to submit a number between 1 and 12 with three tries (total, including the first attempt and two repeats) then you are to display a message, “Get a Life! Program Terminated” and terminate your program. (Be certain to test this option. I will.)
So far I have most of the code done, However I'm not sure how to receive the users name and class # and put together.
Also I can't figure out how to get the part "Get A life..etc." to show before the program terminates.