Question: Software Sales A software company sells a package that retails for $89.99. Quantity discounts are given according to the following table: Quantity Discount 10 19
Software Sales
A software company sells a package that retails for $89.99. Quantity discounts are given according to the following table:
Quantity Discount
10 19 15%
20 39 25%
40 89 35%
90 or more 40%
Write a program that asks for the number of units purchased, computes the amount of discount and the total cost of the purchase.
The program will display the following:
- The quantity purchased
- The amount of discount
- The total cost of the purchase
The output should be well formatted. Consider a good layout.
Design a good solution for the problem described above. It should be a good program, not just a program that works. Apply what was learned about writing programs in C++, and follow all the guidelines. Make use of named constant(s) where appropriate. Display a heading. Display your name at the end. Format the output.
Input validation: Make sure the number of units is greater than 0.
Run your program several times. Test all the various possibilities of quantity and discount and use appropriate test data. You may include a loop to allow the user to try again without having to exit the program and run it again. Obtain the screenshots
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
