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:20
Refrigerant-134a enters the compressor of a refrigerator as superheated vapor at 0.14 mpa and -10°c at a rate of 0.05 ka/s and leaves at 0.8 mpa and 50°c. the refrigerant is cooied in the condenser to 0.72 mpa and 26'c. it is then throttled to 0.15 mpa. sketch the t-s diagram for the system and evaluate: 6) the rate of heat removai from the refrigerated space (kw), it) the power input to the compressor (kw), ii) the isentropic efficiency of the compressor (%), and iv) the cop of the refrigerator.
Answers: 2
question
Engineering, 06.07.2019 04:10
Apinion having 30 involute teeth of 6,5 module rotates at 220 r/min and transmits 2 kw to a gear wheel having 70 teeth; the addendum on both wheels is 4 of the circular pitch and the angle of obliquity is 200. determine; 3.1 the lengths of the path of approach and the arc of approach 3.2 the normal force between the teeth at an instant when there is only one pair of teeth in contact
Answers: 2
question
Engineering, 06.07.2019 04:20
An insulated tank truck containing 50,000 pounds of double-distilled, deionized water at 30 °c is pumped into a closed, refrigerated storage tank maintained at 5 °c in a facility located on top of mount mitchell, north carolina (elevation 6,684 feet & average july temperature of 84 °f). a)-determine the volume of the storage tank required to hold the purified water. b)- determine the initial and final pressure differences that must be overcome by a liquid pump assuming the storage tank initially contains air at 5 °c. assume the air is slowly bled out of the storage tank during the water transfer c.) during a routine operation today, the tank is slightly ruptured by a stainless steel pipe and a water acrosol of droplets begins to spray out of the storage tank. state all assumptions and determine the internal pressure within the water droplets produced
Answers: 1
question
Engineering, 06.07.2019 05:10
Agas contained in a piston-oylinder assembly is initially at p1=100 ibf/ft^2? and occupies a volume of 3.75 ft. the gas is compressed to a pressure p2=500 ibf/ft^2 and a final volume of 0.5 ft. during the process, the relationship between pressure and volume is given as p= a +bv, where a and b are constants a)-determine the values and units for a and b b)-determine the volume, in ft, at an intermediate state where the pressure is 300 ibt/t2.
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.11.2019 22:31
question
Biology, 20.11.2019 22:31
question
History, 20.11.2019 22:31
Questions on the website: 13722362