Engineering
Engineering, 25.02.2020 19:42, juandavidklingera553

C++
A software company sells a package that retails for $99. Quantity discounts are given according to the following table.

Quantity Discount

10-19 20%
20-49 30%
50-99 40%
100 or more 50%

Write a program that asks for the number of units sold and computes the total cost of the purchases.
Input validation: Make sure the number of units is greater than 0

The output should be appropriately formatted; in particular, dollar amounts should show two digits after the decimal.
Show the regular price, the discount, and the discounted price for the transaction in a table.

Please write a c++ program in the simplest manner possible. This is my first programming class. Help is highly appreciated

answer
Answers: 2

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 03:10, lauriepdx17
What precautions should you take to prevent injuries when dealing with heavy loads?
Answers: 1
image
Engineering, 04.07.2019 18:10, viicborella
Steel is coated with a thin layer of ceramic to protect against corrosion. what do you expect to happen to the coating when the temperature of the steel is increased significantly? explain.
Answers: 1
image
Engineering, 04.07.2019 18:10, genyjoannerubiera
Assuming compressible flow of air and that the measurements are done at flagstaff a pitot static tube that gives the difference of total and static pressure measures 0.35 m of mercury. what is the velocity of air? assume the temperature to be 300k. (submit your excel or matlab calculation sheet)
Answers: 1
image
Engineering, 04.07.2019 18:10, mamasbug4285
An air compression refrigeration system is to have an air pressure of 100 psia in the brine tank and an allowable air temperature increase of 60°f for standard vapor compression cycle temperatures of 77 f entering the expansion cylinder and 14 f entering the compression cylinder, calculate the coefficient of performance a. 2.5 b 3.3 c. 4.0 d. 5.0
Answers: 3
Do you know the correct answer?
C++
A software company sells a package that retails for $99. Quantity discounts are given acco...

Questions in other subjects:

Konu
Mathematics, 12.02.2021 05:20