Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Business P6.12 Write an application to pre-sell a limited number of cineula tickets. Each buyer can buy as many as 4 tickets. No more than

image text in transcribedimage text in transcribed

Business P6.12 Write an application to pre-sell a limited number of cineula tickets. Each buyer can buy as many as 4 tickets. No more than 100 tickets can be sold Implement a program called Ticket Seller that prompts the user for the desired triinber of tickets and the displays the number of remaining tickets. Repeat until all tickets have been sold, and then display the total member of buyers. import java.util.Scanner; /** * Code for P6.12 * @author : */ public class TicketSeller public static void main(String[] args) final int MAX TICKETS = 100; // A different number may be used for grading. Scanner input = new Scanner(System.in); int buyers = 0; // Your work starts below. Do not change the codes above. // Your work ends here. Do not change the codes below. System.out.println("Total number of buyers: " + buyers)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

=+3. How appropriate would it be to conduct additional research?

Answered: 1 week ago