Menu

[solved] – Question 69042

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.

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *