Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started