subject
Engineering, 17.08.2020 14:01 dyl4456

“Hotel Mercato” requires a system module that will help the hotel to calculate the rent of the customers. Model the above scenario in Object Oriented Paradigm according to the following requirements 1) The hotel wants such a system that should have the feature to change the implementation independently of the interface. This will help when dealing with changing requirements.
2) The hotel charges each customer 1000.85/- per day. This amount is being decided by the hotel committee
3) The module should take the customer’s name and number of days, the customers stayed in the hotel as arguments in the constructor. The customer name must be initialized only once when the constructor is called. Any further attempts to change the customer’s name should fail.
4) 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.
5 )The discounted rent is being calculated after subtracting one day from the total number of days.
6) In the end, the module displays the following details:
a. Customer Name
b. Days
c. Rent Note that, the function used for displaying purpose must not have the ability to modify any data member

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:10
What difference(s) did you notice using a pneumatic circuit over hydraulic circuit.explain why the pneumatic piston stumbles when it hits an obstacle.
Answers: 2
question
Engineering, 04.07.2019 18:10
The temperature of air decreases as it is compressed by an adiabatic compressor. a)- true b)- false
Answers: 2
question
Engineering, 04.07.2019 18:10
If a particle moves along a path such that r : (3 sin t) m and ? : 2t rad, where t is in seconds. what is the particle's acceleration in m/s in 4 seconds? a)- 16.43 b)- 16.29 c)- 15.21 d)- 13.79
Answers: 1
question
Engineering, 04.07.2019 18:10
An air conditioning system consist of a 5 cm diameter pipe, operating at a pressure of 200 kpa. the air initially enters the pipe at 15°c with a velocity of 20 m/s and relative humidity of 80%. if the heat supply throughout the process is 960 w, determine the relative humidity and the temperature at the outlet
Answers: 3
You know the right answer?
“Hotel Mercato” requires a system module that will help the hotel to calculate the rent of the custo...
Questions
question
Mathematics, 07.02.2022 14:00
question
English, 07.02.2022 14:00
question
English, 07.02.2022 14:00
question
Mathematics, 07.02.2022 14:00
question
Mathematics, 07.02.2022 14:00
question
World Languages, 07.02.2022 14:00
question
Biology, 07.02.2022 14:00
Questions on the website: 13722363