Reference no: EM132096095
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
Difference between a parameter and a statistic
: What is the difference between a parameter and a statistic? Describe an example. Finally, there are "adjustments" that statisticians
|
Write a stub for each member function of class book
: Write a stub for each member function of class Book. You can this either in Book.h or in a separate implementation file (Book.cpp).
|
Difference between the mean and the median
: What is the difference between the mean and the median and which would you report if you had a skewed set of data to describe the central tendency?
|
Properties of moment generating functions
: a. Use the properties of moment generating functions to show that aX+b ~ N(aµ +b, as).
|
Create a program vacationbooker that books hotels
: Create a program VacationBooker that books hotels for Hawaiian vacations.
|
Math course and writing course independent
: Are the events students enrolled in math course and writing course independent?
|
Multi-dimensional array identifiers are normally defined
: Array elements are normally stored in contiguous, side-by-side, memory locations with the first index in all arrays being referenced by index 0.
|
Employees of the air transportation? industry
: Assuming the equation remains valid in the? future, in what year will there be 440,000 employees of the air transportation? industry?
|
Write the equation of the least squares line
: Find the slope, b, and the intercept, a, for the least squares line. Write the equation of the least squares line.
|