Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(b) Write a JSP to calculate the movie ticket, given the adult ticket is RM13.00/person and the child ticket is RM7.00/person. The JSP should
(b) Write a JSP to calculate the movie ticket, given the adult ticket is RM13.00/person and the child ticket is RM7.00/person. The JSP should also return the booking information made by the customer as shown in the Figure 2. Design a method as below: public double calculate (String adult, String Child){ Information key-in by the user Generated output after the user click "CHECK OUT" Online Movie Ticket Booking Order Received! Thank You! Please collect your ticket 1 hour before the movie start. Customer Name: Kiu Ching Chieh Customer Email: kiucc@ucsiuniversity.edu Customer Contact 013-33445566 Name: Kiu Ching Chieh Email: kiucc@ucsiuniversity.edu.my Contact: 013-33445566 Movie: Despicable Me 2 Movie: Despicable Me 2 Cinema: Sunway Piraymid Payment Mode: By Cash Adult Ticket 3 Child Ticket 3 Mid Valley KLCC Sunway Piraymid Adult Ticket: 3 nos @ RM13.00 Child Ticket: 3 nos @ RM7.00 Cinema: Payment Method: O Credit Card Cash CHECK OUT 1 1 3 Total:QM40.0 Page (c) Each customer can only make a booking of 10 ticket per-transaction. Improve the JSP code to prompt the error message to a customer if he orders more than 10 tickets in one booking (as shown in Figure 3). Error: Ticket is limited to 10 nos per-transaction Tip: o error.jsp to display this message o controller.jsp to handle the user input Yes or No Do you want to make a new booking? Yes No Submit If a customer checks Yes, the Submit button If a customer checks No, the Submit button will divert the order form to a customer displays thank you message to a customer Online Movie Ticket Booking Thank you for using the online movie ticketing system. Customer Name: Customer Email Customer Contact vie Blind Detective - Adult Ticket: Child Ticket: Page OMid Valley OKLCC Suway Piraymid Cinema
Step by Step Solution
★★★★★
3.45 Rating (148 Votes )
There are 3 Steps involved in it
Step: 1
Ans b public double calculateString adult String Child int adch ad IntegerparseIntadult ch Intege...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