import java.util.Scanner; //needed for input class Tickets1 { public static void main (String[] args) { int age; double cost; System.out.println("Enter the age"); age = ITI1120.readInt(); if(age <=16) { cost=7.0; } else //a person is older than 16 { if(age >=65) { cost=5; } else { cost=10; } } System.out.println("The cost of the ticket is "+ cost); } }