Asked by Anonymous
Write a program to define a class HotelBill as below
Data Members:
cust_name, check_in_date, check_out_date, no_of_days, bill
Member Methods:
take_input (): to input all member variables.
compute (): that calculates and displays the bill as below: No. of days Rate/day
First 5 days 250
Next 10 days
Above 15 days 300
Data Members:
cust_name, check_in_date, check_out_date, no_of_days, bill
Member Methods:
take_input (): to input all member variables.
compute (): that calculates and displays the bill as below: No. of days Rate/day
First 5 days 250
Next 10 days
Above 15 days 300
Answers
Answered by
Anonymous
Write a program to define a class HotelBill as below
Data Members:
cust_name, check_in_date, check_out_date, no_of_days, bill
Member Methods:
take_input (): to input all member variables.
compute (): that calculates and displays the bill as below:
No. of days Rate/day
First 5 days 250
Next 10 days 500
Above 15 days 300
Data Members:
cust_name, check_in_date, check_out_date, no_of_days, bill
Member Methods:
take_input (): to input all member variables.
compute (): that calculates and displays the bill as below:
No. of days Rate/day
First 5 days 250
Next 10 days 500
Above 15 days 300
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.