Answer to Question #73995 in Java | JSP | JSF for Arh Wen
Write a program to calculate and display the cost of a number of cinema tickets according to the rules:
• RM8 per ticket for the stalls (at the front, rows 1 to 10)
• RM10 per ticket for the gallery (the best seats, rows 11 to 25)
• RM6 per ticket for the upper gallery (far from the screen, rows 26 to 30)
The customer enters two whole numbers, row (the row number) and tickets (the number of tickets required) and the program should calculate and display the cost of that number of tickets for the customer.
An additional requirement is that there should be a RM1 discount per ticket for customers purchasing 10 or more tickets. Save the file as Tickets.java
Need a fast expert's response?Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!