thanks Craigie. So I'm bad at while loops. Don't know why. My other loops are solid a.f.!
Here is the assignment. My main problem is that I can't get the "tickets left" to keep decreasing down to zero.
Write an application called TicketCounterYourLastName to pre-sell a limited number of private concert tickets. Each buyer can buy as many as 6 tickets. No more than 75 tickets can be sold. Implement a program that prompts the user for the desired number of tickets and then displays the number of remaining tickets. Use a while loop in your implementation. Repeat until all tickets have been sold, and then display the total number of buyers.
Hint: You will need to use a complex if statement. You have several criteria that must be met in order for the tickets to be reduced - the requested number of tickets has to be between 1 and 6 and there have to be tickets remaining for the number they selected (i.e. if there are only 3 tickets left and they requested 4, then the buyers shouldn't be increased and the number of tickets shouldn't decreased). If these criteria are met, then the buyers increase and the remaining tickets decrease. Otherwise, we just prompt for another ticket amount until the remaining tickets is equal to zero.
Upload your completed TicketCounterYourLastName.java file to this assignment. It is worth 10 points. (Infinite loop = zero points Frown)