Answered step by step
Verified Expert Solution
Question
1 Approved Answer
REQUIREMENT: Write a Web - based application consisting of a Web form ( ticket - purchase.html ) and a PHP program ( ticket - purchase.php
REQUIREMENT: Write a Webbased application consisting of a Web form
ticketpurchase.html and a PHP program ticketpurchase.php The application
should: ask the user for the number of adult movie tickets they wish to purchase
AND the number of children's tickets that they wish to purchase;
calculate the total cost each adult ticket sells for each child ticket
sells for ; display the number of adult tickets purchased, the number of
children's tickets purchased, and the total cost:
ticketpurchase.html algorithm:
Prompt for numAdultTickets, numChildTickets
Get numAdultTickets
Get numChildTickets
Submit numAdultTickets, numChildTickets to ticketpurchase.php
END
ticketpurchase.php algorithm:
Receive numAdultTickets, numChildTickets from ticketpurchase.html
totalCost numAdultTickets numChildTickets
Display numTickets, totalCost
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