Programming Help in Java?

court class Cinema
court static emptiness main(String args)
int row = Integer.parseInt(args0);
int tickets = Integer.parseInt(args1);
int charge;
// stick in code to calculate and display this cost
// belonging to the tickets seeing that specified in question 2

Use that code to style and estimate and display the price of a quantity of cinema tickets based on the policies:

* 6 per ticket for the stalls (at the front rows 1 to 10)
*10 each ticket for the gallery(the best seats, rows 11 to 25)
*6 for each ticket for the upper gallery (far with the screen, rows 26 to 30)

The customer enters not one but two whole amounts, row (th)e line number ) and tickets (the number of tickets needed ) to the command line and the program shpuld determine and display the price of that amount of tickets for the customer.

put this after comments
if(row>=1 && row<=10)
cost=tickets*8;
different if(row>=11 && row<=25)
cost=tickets*10;
different if(row>=26 && row<=30)
cost=tickets*6;
else

Technique.out.println(“Wrong row number”);
Technique.exit(0);

Technique.out.println(“Cost = “cost+””);

Leave a Reply