Hey everyone, I am new to this and I'm having trouble with my code. I need to calculate gross pay and cannot get my code to work. any suggestions?
import java.util.Scanner;
public class theaterProject {
public static void main(String[] args) {
String price1;
int tSold1, gross1;
String movie;
double average;
String tSold11;
// Robert Winter
Scanner input = new Scanner(System.in);
System.out.println("Welcome to Rob Winter's Calculator for calculating profit");
//Movie Title
System.out.println("Enter Movie:");
movie = input.nextLine();
System.out.println("The Movie is " + movie );
//Ticket Price
System.out.println("Enter Ticket Price:");
price1 = input.nextLine();
System.out.println("The price is " + price1 );
//Tickets Sold
System.out.println("How Many Tickets Sold:");
tSold11 = input.nextLine();
System.out.println("Sold Tickets= " + tSold11 );