Question: Write a C program, which will do the following: Write a Rental Amount Calculator Program for a Video Store. The rental amount will be calculated

Write a C program, which will do the following:

Write a Rental Amount Calculator Program for a Video Store. The rental amount

will be

calculated

based on the following criteria:

a.

The regular rental price of a DVD is $4.25. If rented on a weekend, you have to pay

another 25 cents extra per DVD.

The store provides some discounts based on the following:

b.

If rented more than

5 DVDs

, there is a 20 cents discount per DVD.

c.

If it is a special day (like Valentines day, Mothers day...etc.,), another 25 cents

discount per DVD.

d.

Discounts also given based on membership status. A customer can be a member or

non-member. There are

4

categories of membership. They are Elite, VVIP, VIP, and

Regular. For Elite discount is 25 cents, for VVIP it is 20 cents, for VIP it is 15 cents and

for Regular member it is 10 cents per DVD. For non-members, discount is 5 cents per

DVD.

e.

Renters can also redeem their coupons. But, at a time, a maximum of 10 coupons

can

be redeemed

. For each coupon, discount is 5 cents per DVD.

f.

Customer also pays 13% HST on his/her purchase as usual.

Based on the above, determine the final rental amount and display the amount using two

digits after the decimal point. The number of DVDs, weekend, special day information,

membership status, and number of coupons will be input from the keypad.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!