Question: How to solve USER INPUT that MUST BE VALIDATED: WITH DO WHILE LOOP ALSO.. the program must use a while loop to allow for MULTIPLE

How to solve
USER INPUT that MUST BE VALIDATED: WITH DO WHILE LOOP ALSO.. the program must use a "while loop" to allow for MULTIPLE GUEST TRANSACTIONS
First Name
Last Name
State of Origin (AL, GA or MS)
Check in date (month, day, year)* Validation rules will be listed later
Check OUT date (month, day, year)** Validation rules will be listed later
Hotel Room type (KING, QUEEN, DOUBLE)
No of Quest (1-4)
Discount Code (AAA, SENIOR, NONE)
SMOKING(1-YES or 2-NO)
Refrigerator Request (1-Yes or 2- No)
VALIDATION RULES FOR CHECK IN & CHECK OUT DATES:
VALIDATION FOR THE MONTH (1-12)
VALIDATION FOR THE YEAR (2020-2024)
VALIDATION FOR THE DAY:
Months with 1-31 days: JAN, MARCH, MAY, JULY, AUG, OCT & DEC Months with 1-30 days: APRIL, JUNE, SEPT, & NOV
Months with 1-28 days: FEB (For now, ignore LEAP YEAR)
 How to solve USER INPUT that MUST BE VALIDATED: WITH DO

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!