Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine M Ricardo, Susan D Urban

3rd Edition

1284056945, 9781284056945

More Books

Students also viewed these Databases questions

Question

=+2. What is the difference between brand voice and tone?

Answered: 1 week ago

Question

Question May I set up a Keogh plan in addition to an IRA?

Answered: 1 week ago