joshSawYou / CIS255_Vehicle

0 stars 0 forks source link

Data Entry - Year #9

Closed jwood36 closed 1 year ago

jwood36 commented 1 year ago

No Exception Handling around Year Entry

Enter year: asdf

joshSawYou commented 1 year ago

I added an if statement that requires the input to be in the 2009-2023 range. If the year is not in this range, “Invalid choice. Year has to be in the range of 2009 - 2023. Vehicle creation failed." is printed and starts at the top of the program again.