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
The higher the astm grain size number, the finer the gran is. a)-true b)-false
Answers: 2
question
Engineering, 04.07.2019 18:10
Compute the pressure drop of 30°c air flowing with a mean velocity of 8 m/s in a circular sheet-metal duct 300 mm in diameter and 15 m long. use a friction factor, f 0.02, and pair = 1.1644 kg/m a. 37.26 pa b. 25.27 pa n c. 29.34 pa d. 30.52 pa
Answers: 1
question
Engineering, 04.07.2019 18:20
Vibration monitoring this technique uses the noise or vibration created by mechanical equipment and in seme cases by plant systems to detemine their actual condtion. a)- true b)- false
Answers: 2
question
Engineering, 04.07.2019 18:20
An engine runs on the ideal diesel cycle. the cycle has a compression ratio of 20 and a cutoff ratio of 2. the highest temperature in the cycle is 1200 k. if the heat into the system is 300 kj/kg of working fluid and using variable specific heats determine the work produced per mass of working fluid
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
Social Studies, 27.12.2019 00:31
question
History, 27.12.2019 00:31
question
Mathematics, 27.12.2019 00:31
Questions on the website: 13722361