Java Program help

Write an application to pre-sell a limited number of cinema tickets. Each buyer can buy as many as 4 tickets. No more than a 100 tickets can be sold. Implement a program called ticket seller 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. I have no idea on where to even begin with this can you help?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

If homework, this site expects you to do some attempt at coding first. Thanks.

Having said that, you'd make some headway if you ignore the programming side first, and write out the flow logic of what you'd expect to happen - and by putting yourself in the position of the buyer of a ticket, you'd doubtless stumble across some ideas of how it should all be handled for the best. You'd need a variable to store the total number of tix available, a way of checking the return visits of the punter(s) so that you can limit their purchases,(this at first glance seems the most challenging part of it all), and a loop enclosing the whole thing that finishes - presumably - when all the tickets are sold. If this is the case (which might never happen in real life), then you'd need a separate way of shutting down the programme and reporting on what has been done to that point.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.