Question
Please help me to solve this assignment by Java Create a program VacationBooker that books hotels for Hawaiian vacations. The program must do the following:
Please help me to solve this assignment by Java
Create a program VacationBooker that books hotels for Hawaiian vacations.
The program must do the following: -
Prompt for the name of the island. -
Prompt for the number of nights.
Use a do-while statement to validate the number of nights. It must be greater than zero and not greater than 30.
- Use a switch statement to determine the hotel for that island and the price per night. You must provide a default case for an unknown island
. - Display the vacation info, including the island, hotel, number of nights, price per night, and total.
- NOTE that there is a 10% discount for 7 or more nights
. - Use a do-while loop to keep booking vacations as long as the user enters 1, any other digit to quit.
- Use the command prompt window (terminal) for input and output
. - You must follow the Programming Guidelines handout. All code must be commented and correctly indented. Output MUST be clearly labelled.
- Do NOT use NetBeans, Eclipse or IntelliJ for any lab or assignment. Do NOT create projects or use package statements. - Use this data for your program: Island Hotel Price/Night
Hawaii Hilton Waikaloa Village 159.00
Kauai Grand Hyatt Kauai Resort and Spa 179.00
Maui Montage Kapalua Bay 199.00
Molokai Hotel Molokai 189.00
Oahu Hilton Hawaiian Village Waikiki Beach Resort 149.00
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