Answered step by step
Verified Expert Solution
Link Copied!

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 Web-based application consisting of a Web form
(ticket-purchase.html) and a PHP program (ticket-purchase.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 6.50, each child ticket
sells for 4.50); display the number of adult tickets purchased, the number of
children's tickets purchased, and the total cost:
ticket-purchase.html algorithm:
Prompt for numAdultTickets, numChildTickets
Get numAdultTickets
Get numChildTickets
Submit numAdultTickets, numChildTickets to ticket-purchase.php
END
ticket-purchase.php algorithm:
Receive numAdultTickets, numChildTickets from ticket-purchase.html
totalCost = numAdultTickets *6.50+ numChildTickets *4.50
Display numTickets, totalCost

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

Beginning ASP.NET 4.5 Databases

Authors: Sandeep Chanda, Damien Foggon

3rd Edition

1430243805, 978-1430243809

More Books

Students also viewed these Databases questions