Question: In c# Programming Language Hotel Mercato requires a system module that will help the hotel to calculate the rent of the customers. You are required
In c# Programming Language Hotel Mercato requires a system module that will help the hotel to calculate the rent of the customers. You are required to develop one module/part/class of the system according to the following requirements:
- The hotel charges each customer 1000.85/- per day. This amount is being decided by the hotel committee and cannot be changed fulfilling certain complex formalities.
- The module should take the customers name and number of days, the customer has stayed in the hotel as arguments in the constructor.
- The module then analyses the number of days. If the customer has stayed for more than a week in the hotel, he gets discount on the rent. Otherwise, he is being charged normally.
- The discounted rent is being calculated after subtracting one day from the total number of days.
- In the end, the module displays the following details:
- Customer Name
- Days
- Rent
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
