Applying Branches in Code
The code you will create should address the following scenario:
There is an amusement park where children of a certain age get a discount. At the ticket kiosk, the computer asks the age of the participant. If their age is younger than 15, the entrance price is $20. If their age is 15 or older, the price is $40.
To address the scenario, you will need to code a branching decision that does the following:
Asks the user for their age
Creates a message that will indicate the price of the ticket. The message should say, “The entrance price is _____.”
Prints the correct price based on the user’s input of their age