Question: I have urgent requirement in Java Programming assignment with report guidelines mentioned in Assignment. java programming part is done but implemention's solution i need. Details
I have urgent requirement in Java Programming assignment with report guidelines mentioned in Assignment.
java programming part is done but implemention's solution i need.
Details For this assignment, you are required to develop a Java Console Program to demonstrate you can use Java constructs including input/output via a command line, Java primitive and built-in data types, Java defined objects, selection and looping statements, methods, and various other Java commands. Your program must produce the correct results. You are only allowed to use techniques which have been covered in the first six weeks of the course, you must use the Scanner object for input and no advanced data structures like arrays will be used. Instructions for this appear in the implementation section of this specification.
What to submit for this assignment 1. The Java source code:
Hotel.java
2. A report including a flow chart (UML activity diagram) to depict your validation loop for reading the days, how long it took to create, any problems encountered and screen shots of the output produced. You should test every possibility in the program. ReportAss1.docx Assignment specification The Rocky Budget Hotel management has asked you to write a program to help employees determine the charges for customers staying at their hotel and to also produce some statistics. You are to write a Java Console Application (Hotel.java) which will allow employees to enter the details of N customers names and the number of days to stay at the Rocky Budget Hotel. N should be equal to the highest digit in your student ID, use N=3 if your highest digit is less than three. For each customer the program will prompt for and accept the name of the customer and the length of stay at the hotel (in whole days), it will then display the total cost of the stay (see sample output below for formatting details). The pricing structure for staying at the hotel is (maximum fourteen days): The first day will cost $110. The next two days will cost $100 per day. The next four days will cost $90 per day. The next week will cost $70 per day. The sliding price scale is to encourage customers to stay longer at the Rocky Budget Hotel, the management has imposed a maximum of fourteen days stay, after that the pricing structure will repeat with another booking needed to be made. When all customer names and days to stay have been entered you need to report the maximum and minimum stay (in days) and the relevant customers name, the average stay and the total charges which have been collected. The required Java Console Application should allow the user to: 1. For each of the N customers: enter the Name, and then enter the Length of stay in whole days. The program will output the charge for the customers stay. All dollar values will be formatted to two decimal places (see implementation below with help for doing this). 2. You must ensure the name is not blank so you must implement a validation loop so a valid name is entered. The number of days must be between 1 and 14 inclusive and you will also need to implement a validation loop so valid days are entered. The program will number each customer in the input prompt. 3. When N customers have been entered, you will output a heading for the statistics Statistical information for the Rocky Budget Hotel, the minimum and maximum stays (in days) and the name of the customers with these minimums and maximums, and then what the average stay is in days (formatted to two decimal places) (see sample output below). Note: if more than one customer has an equal maximum or minimum stay you just need to only output one of the customers name. 4. Display a welcome message at the beginning Welcome to the Rocky Budget Hotel system and an end message Thank you for using the Rocky Budget Hotel system and the final line Program written by
Refer to a Java reference textbook and the unit and lecture material (available on the unit WEB site) for further information about the Java programming topics required to complete this assignment. Check the marking guide (last page) to ensure you have completed every task. You need to match the output as shown below. Typical screen shot of the program executing is as follows:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
