Question: what is the right answer ,in java , full explanation please , thank you public class Tichet i private string row; private int seat: private

what is the right answer ,in java , full explanation please , thank you  what is the right answer ,in java , full explanation please
, thank you public class Tichet i private string row; private int

public class Tichet i private string row; private int seat: private double price: public Ticket(String row, int seat, double price) 1 this.row = row: this.seat = seat; this. price = price; ) public string getRow() return row: 1 public int getSeat() 1 return seat: 1 public double getPricel) 1 return price; 1 1 public class Transaction I private int myNumTickets: private ArraylisteTicket> tickList; public Transaction(int numTicks) | myNumTickets = num Ticks; tickList = new Arraylist (): Scanner kb = new Scanner(Systemin): for (int i=0; i =kb inext() System.out.println("Enter seat: "); int seat = kb.nextint(l: System.out.println("Enter price: "); double price = kb.nextDouble(l); ccode to create Ticket object and insert it into array lists \} 1 //returns total amount pald for this transaction public double totalPaid() \{ double total =0.0; for (int i=0;i return total; 1 19) Which represents correct in the totalpaid method? a) total += tickList.get(i).myPrice; b) total += tickList.getPrice(i) ; c) total += tickList. get(i).getPrice() ; d) total += tickList [i].getPrice(); e) total += tickList.get().getPrice(i)

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!