Question: 1. You have been asked to write an invoice application which calculates the total sales amount (including sales tax) for a sales transaction, and then

1. You have been asked to write an invoice application which calculates the total sales amount (including sales tax) for a sales transaction, and then prints the result. Declare variables (of an appropriate type and using meaningful variable names) to represent The name of the purchased Item. The cost for each individual unit. The number of units purchased. . The tax rate Assign sample data to the variables, and use this information to calculate the total sales amount. The program should output an invoice with all the appropriate information for the sale. For example, if your sample data consisted of purchasing 6 Bananas at $0.50 each with a tax rate of 10%, the output of your program might be the following invoice: SUNY Orange Fruit Co. Sales Invoice Item QuantityUnit Price Subtotal TaxTotal Bananas 6 0.50 3.00 0.30 3.30 Thank you for shopping with the SUNY Orange Fruit Co. Make sure you write a complete Java program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
