Question: Use ONLY if, else if, and else (conditionals) as well as do-while loops in JAVA. 8.1: Ticket tracker In this problem, you will write a

Use ONLY if, else if, and else (conditionals) as well as do-while loops in JAVA.
8.1: Ticket tracker In this problem, you will write a program that lets a user track if they have collected enough tickets at the arcade for a prize. First, ask the user to enter the number of tickets they have so far. Then, display a message based on that number of tickets. If the number of tickets is at least 100, let the user know they have enough tickets for a prize! Otherwise, let the user know how many more tickets they need to get to 100. Be sure to match the expected format and pass all the test cases. Don't forget to use good style in your solution and add implementation comments where appropriate. Example input/output 1 Enter the number of tickets you have so far: 60 You need 40 more ticket(s) to get a prize. Example input/output 2: Enter the number of tickets you have so far: 125 You have enough for a prize! Automated Results Run Test Full Screen TicketTracker Java New 1 class TicketTracker ( 0 tickets Debugging information available Not Run 0 questions saved 6 remaining Back Next 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
