#help with homework

6 messages · Page 1 of 1 (latest)

tired gazelle
#

A school organized a fundraising fair to help the elderly. 3 types of tickets are sold at the fair: raffle ticket, concert ticket, buffet ticket.

A person who purchases more than 10 lottery tickets receives one additional lottery ticket for free.
Write a program that will record for each participant in the fair the number of tickets he purchased from each of the three types. The program will calculate and print how many people attended the fair, how many tickets of each type were sold and how many raffle tickets were given for free. The program will end when the number of lottery tickets is taken - 1. can someone help me answer this question teacher told us to do it in a "while loop" i just cant figure it out

languid flare
#

Is there no context to this assignment? No code, no previous assignments working a bit the same? Because that's a very weird hint

tired gazelle
languid flare
#

Alas, it requires too much knowing how classes have been so far with this teacher, I think. A lot of assumptions are required, and an expert is likely to make assumptions that shouldn't be made for you

#

You probably need to learn from books, class materials or tutorials, or maybe your peers. Probably not people on the Internet

tired gazelle
#

well i could show you stuff we learned its basic java if that helps?