Please help me to solve this C++ problem

Status
Not open for further replies.

laura_wamby

Estimable
Nov 29, 2015
1
0
4,510
0
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.
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
S Apps General Discussion 2
P Apps General Discussion 1
K Apps General Discussion 2
G Apps General Discussion 1
D Apps General Discussion 1
Rafael Mestdag Apps General Discussion 2
P Apps General Discussion 1
B Apps General Discussion 1
D Apps General Discussion 1
K Apps General Discussion 1
deramatic351 Apps General Discussion 6
K Apps General Discussion 1
L Apps General Discussion 1
tech-wreck Apps General Discussion 5
My Life Is Tech Apps General Discussion 4
M Apps General Discussion 2
drapacioli Apps General Discussion 1
delellod123 Apps General Discussion 2
K Apps General Discussion 2
Matan Eldan Apps General Discussion 4

ASK THE COMMUNITY