classLab3.java - import java.util import java.lang.Math class classLab3 cfw private static Scanner input = new Scanner(System.in public static void

classLab3.java - import java.util import java.lang.Math...

This preview shows page 1 out of 1 page.

import java.util.*;import java.lang.Math;class classLab3 {private static Scanner input = new Scanner(System.in);public static void main(String[] args) {// int costClassA;costClassA = 15;int costClassB;costClassB = 12;int costClassC;costClassC = 9;int numTickets;numTickets = 0;System.out.println("Enter the number of class A seats sold");numTickets = input.nextInt();showTicketsRevenue(numTickets, costClassA, "A");System.out.println("Enter the number of class B seats sold");

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture