Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

class Draganco { public static void main(String[ ] args){ System.out.println(\"P

ID: 3616477 • Letter: C

Question

class Draganco
{

public static void main(String[ ] args){
    System.out.println("Please enter a ticket price");
    int pi=TextIO.getInt();
    TM atm=new TM(pi);
    int MeItem=1;
    while (MeItem!=0){
        MeItem=menu();// amethod
        if (MeItem==1){
            intpp=atm.getPrice();   // a method
           System.out.println("Ticket price is "+pp);}
// continued next page
else if (MeItem==2)
{
        System.out.println(“Keyin the money inserted in pence");
         intmoney_insert=TextIO.getInt();
         atm.insertMoney(money_insert);
         atm.printTicket();}
    else if (MeItem==3) {
            intrefund=atm.refundBalance();
           System.out.println("Please take your refund " + refund);}
    else
            {inttt=atm.getTotal();
            intbb=atm.getBalance();
           System.out.println("The total for tickets: "+tt);}
        }//end of loop whilefor choosing action
    } //end of main


Explanation / Answer

I don't have TextIO on my system. but you are missing a } at the very end toend the class and class TM is undefined and you'vegot an oddball " again class Draganco { public static void main(String[ ] args){     System.out.println("Please enter a ticket price");     int pi=TextIO.getInt();     TM atm=new TM(pi);     int MeItem=1;     while (MeItem!=0){         MeItem=menu();// amethod         if (MeItem==1){             intpp=atm.getPrice();   // a method            System.out.println("Ticket price is "+pp);} // continued next page else if (MeItem==2) {        System.out.println("Keyin the money inserted in pence");          intmoney_insert=TextIO.getInt();          atm.insertMoney(money_insert);          atm.printTicket();}     else if (MeItem==3) {             intrefund=atm.refundBalance();            System.out.println("Please take your refund " + refund);}     else             {inttt=atm.getTotal();             intbb=atm.getBalance();            System.out.println("The total for tickets: "+tt);}         }//end of loop whilefor choosing action     } //end of main }//endclass