Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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_2

Step: 3

blur-text-image_3

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

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

10th Edition

0137916787, 978-0137916788

More Books

Students also viewed these Databases questions

Question

Define an unfair labor practice and provide three or four examples.

Answered: 1 week ago

Question

How many three-digit numbers are divisible by 7?

Answered: 1 week ago

Question

What is Indian Polity and Governance ?

Answered: 1 week ago

Question

=+j Explain IHRMs role in global HR research.

Answered: 1 week ago

Question

=+j Describe an effective crisis management program.

Answered: 1 week ago