Write a Java program to sell a limited number of cinema tickets. Each person can buy up to 4 tickets, where the number of available tickets is 100. Your program should do the following: 1. Prompt the...


Write a Java program to sell a limited number of cinema tickets. Each person can buy up
to 4 tickets, where the number of available tickets is 100. Your program should do the
following:
1. Prompt the user for the number of tickets to buy.
2. Display the number of remaining tickets.
3. Repeat the above steps until all tickets have been sold.
4. Display the total number of buyers.
Invalid testing:
(1) If the number of tickets to buy is more than 4, then print a message that the
maximum tickets to buy is 4.
(2) If the number of tickets to buy is more than the available tickets, then print a
message that there are no enough tickets available



Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here