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:

  1. 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.
  2. The module should take the customers name and number of days, the customer has stayed in the hotel as arguments in the constructor.
  3. 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.
  4. The discounted rent is being calculated after subtracting one day from the total number of days.
  5. In the end, the module displays the following details:
    1. Customer Name
    2. Days
    3. Rent

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!