Question: [JAVA] Thanks in advance for your help! Write a program that computes the amount owed given the cost of an item and the quantity purchased.
[JAVA] Thanks in advance for your help!
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 (final) int the main method. Remember, constants should be all capitals ). 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
Get step-by-step solutions from verified subject matter experts
