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
Refrigerant 134a enters an insulated compressor operating at steady state as saturated vapor at -26°c with a volumetric flow rate of 0.18 m3/s. refrigerant exits at 9 bar, 70°c. changes in kinetic and potential energy from inlet to exit can be ignored. determine the volumetric flow rate at the exit, in m3/s, and the compressor power, in kw.
Answers: 1
question
Engineering, 04.07.2019 18:10
Give heat transfer applications for the following, (i) gas turbines (propulsion) ) gas turbines (power generation). (iii) steam turbines. (iv) combined heat and power (chp). (v) automotive engines
Answers: 1
question
Engineering, 04.07.2019 18:10
Water in a partially filled large tank is to be supplied to the roof top, which is 8 m above the water level in the tank, through a 2.2-cm-internal-diameter pipe by maintaining a constant air pressure of 300 kpa (gage) in the tank. if the head loss in the piping is 2 m of water, determine the discharge rate of the supply of water to the roof top in liters per second.
Answers: 3
question
Engineering, 04.07.2019 18:10
Carbon dioxide gas expands isotherm a turbine from 1 mpa, 500 k at 200 kpa. assuming the ideal gas model and neglecting the kinetic and potential energies, determine the change in entropy, heat transfer and work for each kilogram of co2.
Answers: 2
You know the right answer?
C++
A software company sells a package that retails for $99. Quantity discounts are given acco...
Questions
question
Mathematics, 20.01.2021 01:00
question
Mathematics, 20.01.2021 01:00
question
Mathematics, 20.01.2021 01:00
Questions on the website: 13722367