Question: Create a web page that displays (either an alert box or add html tags to use getElementById) the cost of a movie ticket for a
Create a web page that displays (either an alert box or add html tags to use getElementById) the cost of a movie ticket for a customer. The user should be prompted for the age of the customer. The output should be a message telling the user what the customer's ticket will cost, based on the following criteria:
- Under age 5 the entry is free
- Between ages 5 and 12 (inclusive) a child's ticket costs $5.00
- Older than 12 an adult ticket costs $9.00
You have to implement each button by using an if and switch statement.
Start with code below.

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
