Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need help ASAP! C++ coding, here is what i have #include #include using namespace std; int main() { int Units; double Retail, Total, Discount, Price;
Need help ASAP! C++ coding, here is what i have
#include
using namespace std;
int main() { int Units; double Retail, Total, Discount, Price;
cout > Units; Price = 99;
if (Units > 0) { Retail = Units * Price; Discount = Total - Price; cout = 10 && Units > Discount; Discount = Total - Retail; } else if (Units >= 20 && Units = 50 && Units = 100) { Total = Retail - (Retail * .50); cout
return 0; }
A software company sells a package that retails for $99. Quantity discounts are given according to the following table. uantity 10-19 20-49 50-99 100 OR MORE Discount 20% 30% 40% 50% Write a program that asks for the number of units sold and Input validation: Make sure that the number of units is greater than 0 Sample program interactions (user input bolded) Number of Units to Order: 50 Discount: $ 1980.00 computes the total cost of the purchase Order Total: S 2970.00 Number of Units to Order: 0 Invalid order Number of Units to Order: 9 Discount: $0.00 Order Total: S 891.00Step 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