Doing something "again" is what loops are for. If your assignment requires the code to do things "again" then you need to use a loop.
See the tutorial: The while and do-while Statements (The...
Type: Posts; User: Norm
Doing something "again" is what loops are for. If your assignment requires the code to do things "again" then you need to use a loop.
See the tutorial: The while and do-while Statements (The...
You need to answer this question first:
What do you want the program to do when there is an exception?
then decide how to do it.
What do you want the program to do when there is an exception?
If you want it to go back and ask the user to input a valid value, you need to use a loop that exits when a valid value is entered and...