Please help me to solve this C++ problem

Not open for further replies.


Nov 29, 2015
1. Taach Hotel offers accommodation services to customers for fees. There are two types of accommodation services namely, SUP and DOW which cost Sh.2000 and Sh.1200 per day respectively. A customer who goes for accommodation for at least 3 days but not exceeding 5 days gets a discount of 20% on accommodation cost. For accommodation of at least 5 days, a customer gets discount of 25% on accommodation cost. There is no discount for accommodation of less than 3 days unless athe customer goes for SUP accommodation service in which case the discount would be 10%. Write a C++ program to input for each customer, name, type of accommodation paid for, and number of days required of accommodation, and to determine and output for each customer, accommodation charge, discount (if any) and net charge. Output should also include total (accumulated) net charges. Net charge is charge less discount. The program should work for any number of customers, and its execution should stop when either “XXX” is entered instead of customer name. The program should use function for determining discount.
Write the program and then ask for assistance with code that is not working as you intend.

You will need to show the code beforehand as we cannot do homework.
Not open for further replies.