Question
Question 4. 20 points. Make the title of this section: (Your Name)s Movie Ticket Ticket App. At the local movie theater, they charge by age.
Question 4. 20 points.
Make the title of this section: (Your Name)s Movie Ticket Ticket App.
At the local movie theater, they charge by age. Children under 12 get in free, 12 to 16-year-olds cost $10, and anyone 17 years old and older costs $13.
Write the price scheme to the screen using an unordered list.
Write an empty div element to the screen with the id of price.
Write a text input box on the screen (representing someones age) and a submit button on the screen. As always, make sure this box is appropriately labeled.
The program should take the user for their age from the inbox box. Then, the program should report to the screen using the price div element, Your ticket price is (price). Replace (price) with the price based on the information above. If the price is free, say free. If the price isnt free, make sure the price uses a dollar sign to represent the dollar amount. (Make sure that the sentence ends with a period.)
Make sure that you check for each of the age ranges!
Write an additional rule into the program: if the user enters a negative number (you cant be negative years old!), then report an error to the screen.
Question 5. 20 points.
Everything in this question should go in the q5 folder. The file should be named index.html.
This application will ask the user for a number and check to see if the value is 1 to 10. The program should report if the value is less than, inside, or greater than the range.
Make the title of this section: (Your Name)s Range Check App.
Put an empty div element on the screen named result. Your application should write the results to this element.
Create an empty div element to receive output.
Create an interface with an input field that allows for any numerical value. Also include a submit button. As always, label everything.
After the user enters a value, respond with one of the following statements:
The value is lower than the minimum value of the range.
The value is in the range of the minimum and the maximum.
The value is greater than the maximum value of the range.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started