Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 -

image text in transcribed

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 20 - 39 40-89 90 or more 15% 25% 35% 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. I 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 CH4, 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. Write the documentation for the program, similar to what was done for the labs. Submit the .cpp and .exe files, and the Word document to Moodle

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_2

Step: 3

blur-text-image_3

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

Oracle Database Administration The Essential Reference

Authors: Brian Laskey, David Kreines

1st Edition

1565925165, 978-1565925168

More Books

Students also viewed these Databases questions