Question: Trying to write this in java code but I'm running into a lot of errors. package receipt; public class Receipt { { int quantity=2, tax=7,i;
Trying to write this in java code but I'm running into a lot of errors.
package receipt;
public class Receipt {
{ int quantity=2, tax=7,i; String item="0010", description="Paper"; double amt=1.99, amount=4.26, total=12.78, ("\t\t\t\t", "Receipt"); ("Item#\t", "Description\t", "Amt\t", "Quantity\t", "Tax\t", "Amount\t"); for(i=1;i
The end result would look like this.

Receipt Item# Description Amt Quantity Tax Amount 0010 Paper 0010 Paper 0010 Paper 1.99 1.99 1.99 7% 4.26 790 4.26 7% 4.26 Total 12.78 Page 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
