Reference no: EM132442344
Question: Write a program in C language. You are hosting a Movie Charity Event and want to capture what percentage of the sales will be donated to the charity group. The program should calculate total cost for the number of movie tickets sold for Adults and Children.
1. You must use a loop to keep asking if they want to buy more tickets.
2. You must use at least ONE function that you create (hint: use one for the ticket sales)
3. You should have totals for:
• Total number of Adult Movie Tickets sold
• Total number of Children Movie Tickets sold
• Total dollar amount that is due from the individual
• Percentage for the charitable contribution (45% goes to charity)
4. Hints and Suggestions:
• You can set your own movie prices - for example, adult ticket is $15
5. At the end, it prints out the total dollar amount spent on sales for all Movie Tickets. The percentage is then calculated, so the charity group knows how much money they will receive.