Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Add a heading. output paragragh, and button to the HTML . paget. Create a hunctice for ifie beition to call that uses two prompts to

Add a heading. output paragragh, and button to the HTML. paget. Create a hunctice for ifie beition to call that uses two prompts to ask at user how olis they ae (in years) and the title of the movie they want to see. If eiftier
If either vatue in irvalid, display a message in the output poragrapti explaining of
The number is invalid if A is not a poskive mamber (use your function from part 1)
The title is invalid if if's length is 0
If both values are valid, calculate the price of the thchet as follows.
o The base price of the ticket is based on the lingith of the stie. The mosie costs 52 per character in the title. The minimum buse price is $5 and the maximum os $30. Just cteck the inngth af the string, spaces, punctuation, numbers, elc, are al indude in the length if the sitring a too lorig or too short, youll use the minimumtmaxmum price
o. It the uset is younger thas 10 or oider than 60, they recetion a $3 discourt it the base prica
Displiay one of the tollowing messages with the correct values based on the inpulfcalculations
Your did not enter a vald age- You mist enter a positive number.
You od not emer a vals bitfe. Thet lille must have at least one chatacter
A regular toket for IT is 55
A discourit tikiel for it is 32
A reguiar tichel for Ghastbusters conis 324
A discount ticket for Ghoatbusters costn $21
A reguar tickel kor Everyiting Everyature All Al Once is $30
A difoccim bodel for Everyting Everyitere All Af Once is S27
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

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 1 Lncs 13426

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124227, 978-3031124228

More Books

Students also viewed these Databases questions

Question

Which positive integers less than 30 are relatively prime to 30?

Answered: 1 week ago

Question

Discuss the key ambient conditions and their effects on customers.

Answered: 1 week ago

Question

Understand the roles of signs, symbols, and artifacts.

Answered: 1 week ago