Question
. Programming Exercise A software company sells a package that uses a variable retailCost which is an user input. Quantity discounts are given according to
. Programming Exercise A software company sells a package that uses a variable retailCost which is an user input. Quantity discounts are given according to the following table: Quantity Discount 5 9 10% 10 -19 20% 20 49 30% 50 or more 40% Write a program that asks for the number of units sold and computes the total cost of the purchase. The formula to be used is: Cost = Number of Units Sold * RetailCost * (1 0.01*Discount) dollars, Use if else statement to first decide on the Discount, then use the formula to compute the cost and then display the cost.
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