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 $99. 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
0
0% off
Between $99 and $297
10% off
Between $298 and $693
20% off
More than $694
25% 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 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!