Question: Program in Java and Create a new program called TicketPurchase . -Create a method called receipt that will print each ticket price, add up ticket
Program in Java and Create a new program called TicketPurchase.
-Create a method called receipt that will print each ticket price, add up ticket prices, calculate the subtotal, calculate the tax using (0.08%), and calculate the total cost.
Use Variables for Ticket prices:
-162.03
-99.36
-21.02
-436.36
Print each ticket price, the subtotal, tax amount, and total cost including tax on the console.
Paste code here.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
