Write a Java program to sell a limited number of cinema tickets. Each person can buy upto 4 tickets, where the number of available tickets is 100. Your program should do thefollowing: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 themaximum tickets to buy is 4.(2) If the number of tickets to buy is more than the available tickets, then print amessage that there are no enough tickets available
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here