Nested IFs can be used.
Here is the complete program:
PRINT "Enter full fare" INPUT FARE PRINT "Enter age" INPUT AGE ' 'Calculate discount based on age IF AGE < 12 THEN LET RATE = 0.0 ELSE IF AGE < 24 THEN LET RATE = 0.70 ELSE LET RATE = 1.0 END IF END IF 'Calculate fare PRINT "Your fare is:", FARE * RATE END
A passenger is 21 years old and wants a round-trip ticket to Rome. The full fare is $1000. What does this passenger pay?