View the step-by-step solution to:

Question

# Create application to pre-sell a limited number of concert tickets. Each buyer can buy as many as 5 tickets. No

more than 40 tickets can be sold. Implement program that prompts the user for the desired number of tickets and then displays the number of remaining tickets. Repeat until all tickets have been sold, and then display the total number of buyers. Use a complex if statement. 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 5 and there have to be tickets remaining for the number they selected. 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.

### Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

### -

Educational Resources
• ### -

Study Documents

Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

Browse Documents