T3 2021: ICT272 Web Design and Development Assignment 2 – 10%
Assessment topic: Create a basic C# console application. Individual assignment
Task details:
Sydney hotels offer several types of rooms for accommodation. Currently the hotel offers a type of rooms called “Deluxe rooms”. Customers can reserve the room at the counter for one or more nights. If the customer reserves more nights, then the price is lower. Room services cost 10% of the total price. Create a basic C# console application to calculate and display room reservations for N customers who reserve rooms from Sydney hotel. The prices of the rooms are shown below:
Number of nights | Price (including tax) |
1-3 nights | $100 per night |
4-10 nights | $80.5 per night |
More than 10 nights | $75.3 per night |
The application should ask the user to enter the customer’s name, the number of nights, and yes or no to indicate whether the customer needs room service. Room services cost 10% increase on the total price.
Assume that the number of nights is an integer type with the range between 1 and 20. An error message should be issued if a user enters a value beyond this range and re-entering is required.
The program makes a calculation of the reservation and displays the result of customer details and the total price as shown below. The program should be kept running with entering the next set of input data.
After all N sets of input data are entered from the keyboard, your program will also display the information that includes the customer spending most, the customer spending least as shown in the below figure
The application should be user-friendly by displaying appropriate welcome, exit and error messages.
Submission requirements details:
For a solution, connect with our online professionals.