The Acme Software Company sells its "Adding Tutor" software for $109.Quantity discount are given using 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 calculates the total cost of the purchase including discount. Adjust the totalby the sales tax (use 7.75%). Display the total cost, the discount, the sales tax and adjusted amount due. Display a warning and end the program if the number of units sold isnot greater than 0
I have finish but I couldn't calculate and it not work..Can anyone help me please
purplefantasy
0
Newbie Poster
Recommended Answers
Jump to PostI have finish but I couldn't calculate and it not work
Show us what you've got done so far, so we know what to tell you to correct.
Jump to PostIn all cases remove quotes around bolded section
cout <<"\n" << setw(20) << "Adjust Amount $" << [b]"AdjustAmount"[/b] << endl;
Declare DiscountRate in your application and set its value inside each conditional
…cout <<"\n" << setw(20) << "Discount rate " << DiscountRate << endl;
All 6 Replies
Tight_Coder_Ex
17
Posting Whiz in Training
purplefantasy
0
Newbie Poster
Tight_Coder_Ex
17
Posting Whiz in Training
purplefantasy
0
Newbie Poster
Tight_Coder_Ex
17
Posting Whiz in Training
alc6379
120
Cookie... That's it
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.