Question: Write a C + + program that will apply a discount to the calculated total price. The program starts asking the user to enter the
Write a C program that will apply a discount to the calculated total price. The program starts asking the user to enter the quantity of software to be purchased. Each software cost $ After it the program calculates the total price as:
Total number of software price of each software.
The price of each software must be set as a constant variable. There is a discount apply to the total price according to the following table:
Total price
Discount rate
off
Between $ and $
off
Between $ and $
off
More than $
off
The discount is calculated as:
Discount total price discount rate
The total price to pay is calculated as:
TOTAL TO PAY total price discount
After the conditional statement, the program should prompted
BOOK STORE
Quantity
Total Price $
Discount $
TOTAL TO PAY $
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
