Question: Write an application to pre - sell a limited number of cinema tickets. Each buyer can buy up to 4 tickets. No more than 2
Write an application to presell a limited number of cinema tickets. Each buyer can buy up to tickets. No more than tickets can be sold total. Prompt the user for the desired number of tickets and then display the number of remaining tickets after their purchase. Repeat until all tickets have been sold. Then display the total number of buyers.
Please use the following in your code:
function
input
output
accumulator
if statement
loop
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
