Question: In C++ Write a program that computes the amount owed given the cost of an item and the quantity purchased. It should also include a

In C++

Write a program that computes the amount owed given the cost of an item and the quantity purchased. It should also include a 7.5% sales tax (declare the sales tax as a constant. Remember, constants should be all capitals and above above the main function). The program should continue to compute how much is owed until the user indicates they want to end. End with a new line

Sample Output

Enter the cost of the item: 1.25 Enter the quantity purchased: 5 Amount Due: 6.72 Do you have another customer (y/n): Y Enter the cost of the item: 2.74 Enter the quantity purchased: 3 Amount Due: 8.84 Do you have another customer (y/n): y Enter the cost of the item: .99 Enter the quantity purchased: 15 Amount Due: 15.96 Do you have another customer (y/n): n 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!