Question: home / study / engineering / computer science / computer science questions and answers / html/javascript build a script to determine the cost of a

home / study / engineering / computer science / computer science questions and answers / html/javascript build a script to determine the cost of a movie ticket. movies that begin prior ...

Question: Html/javascript Build a script to determine the cost of a movie ticket. Movies that begin prior t...

html/javascript

Build a script to determine the cost of a movie ticket. Movies that begin prior to noon on a weekday cost $10 for adults (18 or older) and $5 for children (under 18). Otherwise, tickets are $15 each for adults and $12 for children. If a movie is rated "R", the customer cannot purchase the ticket if not an adult. Finally, senior citizens (over 65) get a 10% discount. Show all the details along with the ticket price after all data has been entered. Invalid data must be repeatedly asked until valid.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!