subject
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

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 18:10
What difference(s) did you notice using a pneumatic circuit over hydraulic circuit.explain why the pneumatic piston stumbles when it hits an obstacle.
Answers: 2
question
Engineering, 04.07.2019 18:10
An ideal otto cycle with air as the working fluid has a compression ratio of 8. the minimum and maximum temperatures in the cycle are 300 k and 1340 k. use constant specific heats at room temperature to determine (a) the amount of heat transferred to the air during the heat- addition kj/kg, (b) the thermal efficiency, and (c) the thermal efficiency of a carnot cycle ope limits. process, in rating between the same temperature
Answers: 2
question
Engineering, 04.07.2019 18:10
Which of the following components of a pid controlled accumulates the error over time and responds to system error after the error has been accumulated? a)- proportional b)- derivative c)- integral d)- on/off.
Answers: 2
question
Engineering, 04.07.2019 18:10
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
You know the right answer?
C++
A software company sells a package that retails for $99. Quantity discounts are given acco...
Questions
question
Mathematics, 22.04.2021 14:00
question
English, 22.04.2021 14:00
question
Physics, 22.04.2021 14:00
Questions on the website: 13722363