Yeppoon Budget Cabins are offering cabins at $89.95 per night. For each booking irrespective of the number
Question:
Yeppoon Budget Cabins are offering cabins at $89.95 per night. For each booking irrespective of the number of days there is a one-off cleaning fee of $20.00.
If the customer books one night, the total charge will be $109.95, two nights will be $199.90 etc.
To encourage customers to book more nights, the management has decided to give a ten percent discount for a booking with more than seven nights and a fifteen percent discount with a booking of more than fourteen nights on the total nights of stay charge. This will not apply to the one-off cleaning fee.
Develop a Java Console Application (YeppoonCabins.java) which will allow staff to enter the details of N booking names and the number of nights. Use N=8. For each booking the program will prompt for and accept the booking name and the number of nights, it will then display the charge (see sample output below for formatting details).
When all the bookings have been entered you need to report the maximum and minimum number of nights per booking and the relevant booking name, the average number of nights per booking and the total charges which have been collected.
Required: Java Console Application should allow user to:
1. For each of the N bookings: enter the booking name, and then enter the number of nights. The
program will output the charge for the booking. All dollar values will be formatted to two decimal
places (see implementation below with help for doing this).
2. You must ensure the booking name is not blank so you must implement a validation loop to
ensure that a booking name is entered. There is no need to ensure the name is a valid name (e.g. entering 1 for the name would be allowed). The number of nights must be greater than or equal to one and you will also need to implement validation loop to ensure that a valid number of nights is entered.
3.When N bookings have been entered, you will output a heading for the statistics "Statistical information for Yeppoon Cabins", the minimum and maximum number of nights booked and the booking names with these minimums and maximums, and then what the average number of nights per booking is (formatted to two decimal places) (see sample output below). Note: If more than one booking has an equal maximum or minimum nights you just need to only output one of these cases.
4. Display a welcome message at the beginning "Welcome to the Yeppoon Cabins Management System" and an end message e.g. "Thank you for using the Yeppoon Cabins Management System" and the final line "Program written by <12207328>" (see sample output below).