Hi guys im new to Java and just need a bit of help with a program i am making
What i have is a program that lets the user enter 2 numbers the first number being there age and the second number is the amount of tickets required ,
i have 2 age groups so far one for ages less than 18 and one for ages greater than 59 i need a 3rd age group for ages between 18 and 59 and this is where im getting stuck, here is my code below .
public static void main(String args)
a= Integer.parseInt(args) ;
System.out.println("The cost is " + d*b + "pounds");
else if (a>59)
System.out.println("The cost is " + c*b+ " pounds");