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
Discount Code AAA SENIOR, NONE
SMOKINGYES or NO
Refrigerator Request Yes or No
VALIDATION RULES FOR CHECK IN & CHECK OUT DATES:
VALIDATION FOR THE MONTH
VALIDATION FOR THE YEAR
VALIDATION FOR THE DAY:
Months with days: JAN, MARCH, MAY, JULY, AUG, OCT & DEC Months with days: APRIL, JUNE, SEPT, & NOV
Months with days: FEB For now, ignore LEAP YEAR
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
