I'm building a small auction system. this is my main menu (UI).
In each switch case, I prompt user to enter some values (item name, date, price etc.). I wanna re-prompt user to re-enter values for each prompt if the initial entry is in wrong format or simply wrong.
for example, if program asks user to enter date and user enters invalid input, i want the user to be re-prompted. I tried a couple of different things but the result I got was repeating all question from beginning (name, startDate, minBidAmount etc) if [for example] startDate was wrong.
one way that i can think of (which sounds bad) is creating one while loop for each question!!
and will prompt user to enter Date and time and verify correct format.
Tell me if my code "looks" bad. I care.
If you ever look at my code and think the question I'm asking isn't the right question to ask, tell me.