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.
You must use a loop to keep asking if they want to buy more tickets.
You must use at least ONE function that you create (hint: use one for the ticket sales)
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)
Hints and Suggestions:
You can set your own movie prices for example, adult ticket is $15
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.
Here is what the output looks like.
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.Read more
Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.Read more
Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.Read more
Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.Read more
By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.Read more