Question
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
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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started