Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Put Your Data To Work 52 Tips And Techniques For Effectively Managing Your Database

Authors: Wes Trochlil

1st Edition

0880343079, 978-0880343077

More Books

Students also viewed these Databases questions

Question

How do Data Types perform data validation?

Answered: 1 week ago

Question

How does Referential Integrity work?

Answered: 1 week ago