Answered step by step
Verified Expert Solution
Link Copied!
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;

image text in transcribed

Need help ASAP! C++ coding, here is what i have

#include #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.00

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle9i Database Administrator Implementation And Administration

Authors: Carol McCullough-Dieter

1st Edition

0619159006, 978-0619159009

More Books

Students explore these related Databases questions