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
At 12 noon, the count in a bacteria culture was 400; at 4: 00 pm the count was 1200 let p(t) denote the bacteria cou population growth law. find: (a) an expression for the bacteria count at any time t (b) the bacteria count at 10 am. (c) the time required for the bacteria count to reach 1800.
Answers: 1
question
Engineering, 04.07.2019 18:10
An ideal otto cycle with air as the working fluid has a compression ratio of 8. the minimum and maximum temperatures in the cycle are 300 k and 1340 k. use constant specific heats at room temperature to determine (a) the amount of heat transferred to the air during the heat- addition kj/kg, (b) the thermal efficiency, and (c) the thermal efficiency of a carnot cycle ope limits. process, in rating between the same temperature
Answers: 2
question
Engineering, 04.07.2019 18:10
Hydraulic fluid with a sg. of 0.78 is flowing through a 1.5 in. i.d. pipe at 58 gal/min. the fluid has an absolute viscosity of 11.8 x 105 lbf-sec/ft2. is the flow laminar, turbulent or within the critical range? give both a numerical reynolds number and a term answer.
Answers: 3
question
Engineering, 04.07.2019 18:20
Determine the damped natural frequencies and the steady state response of a decoupled damped forced two degrees of freedom system. 10ä1 + 2q1 20q1 10 cos t; 10q2 +4q2 + 40q2 10 cos t
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
English, 24.06.2021 14:00
question
Physics, 24.06.2021 14:00
question
Social Studies, 24.06.2021 14:00
Questions on the website: 13722363