Professional Documents
Culture Documents
Dream Pictures - Final
Dream Pictures - Final
Dream Pictures is a famous movie theatre in the city. They want to automate their Ticket Booking service for
their customers, by which customers can know ticket details and book tickets at their convenience. Help them
out by developing a web page that will calculate the ticket cost to be paid by a customer on his booking. On
submitting relevant details, the message has to be displayed on the same page as shown below.
After giving all relevant details and clicking on Book Ticket button :
Use the Label Name and the Component Id as given. All the necessary attributes for the Components should
be given. The Component Id should be specified for each HTML Component. If the Component Id is not
provided for an HTML component, marks will not be provided for that component. All Tags, Elements and
Attributes should conform to HTML5 Standards. All the fields are mandatory.
Use type=“text”
Note: Fill in the style tag so as to have the given styles applied to the components.
(Do not use Inline CSS and short hand styling)
Formula:
totalCost= noOfTickets*costPerSeat
If beverages is selected, then add 250 on each ticket along with totalCost
Example:
If 3 tickets of seatCategory “Balcony” is chosen with beverages
totalCost= (3*750)+(250*3)
If 3 tickets of seatCategory “Balcony” is chosen without beverages
totalCost= (3*750)
Note:
Use the getElementById() function to retrieve the values.
Use Math.round() on the final result to get a rounded value.
In Javascript, Please do not use “let”. Instead, use “var”.
4 form Tag The form Tag is already given in the code template. Do not change the code
with attribute template and do the coding as per the requirements and specification. Make sure
onsubmit that the onsubmit attribute in the form tag invokes the JavaScript function like
"return display()". Also ensure that the “return false;” statement should be the last
line of the JavaScript function “display()”.