Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Movie theaters keep only a percentage of the revenue earned from ticket sales. T

ID: 3799927 • Letter: M

Question

Movie theaters keep only a percentage of the revenue earned from ticket sales. The remainder goes to the movie distributor. Write a program that calculates a theater's gross and net box office profit for a night. The program should prompt the user for the number of adult tickets sold, the number of child tickets sold, the price of an adult ticket and the price of child ticket. The theater keeps 20% of the gross box office profit. Display a report similar to the following:

Price of Adult Ticket: $ 10.00

Price of Child Ticket: $ 6.00

Adult Tickets Sold: 382

Child Tickets Sold: 127

Gross Box Office Profit: $ 4582.00

Net Box Office Profit: $ 916.40

Amount Paid to Distributor $ 3665.60

Must use C code NOT C++

Explanation / Answer

Code:

Output:

Price of Adult Ticket: $ 10.00

Price of Child Ticket: $ 6.00

Adult Tickets Sold: 382

Child Tickets Sold: 127

Gross Box Office Profit: $ 4582.00
Net Box Office Profit: $ 916.40
Amount Paid to Distributor $ 3665.60

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote