Answered step by step
Verified Expert Solution
Link Copied!

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 (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)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions

Question

13. What are their tastes? (refined, middle class, or subsistence)

Answered: 1 week ago

Question

Brief the importance of span of control and its concepts.

Answered: 1 week ago

Question

What is meant by decentralisation?

Answered: 1 week ago

Question

Write down the Limitation of Beer - Lamberts law?

Answered: 1 week ago