Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a C + + program for a local movie theater to calculate its profit from ticket sales. At a local movie theater, the price
Write a C program for a local movie theater to calculate its profit from ticket sales.
At a local movie theater, the price of an adult ticket is $ and a child's ticket is $ The movie distributor
keeps percent of the revenue earned from ticket sales. The remaining percent goes to the movie theater.
Write a program that calculates the theater's gross ticket sales, net box office profit, and the amount paid to the
distributor for a movie. The program should ask for the Name of the movie and how many adult and child
tickets were sold.
REQUIRED:
Before you start coding, complete the program development sheet provided at the end.
Use integer and double as the data types when appropriate in your solution.
Declare only one constant PERCENTPROFIT and set it equal to compute other value using
subtraction.
Match the inputoutput EXACTLY with what is provided below down to every blank space and line.
Each dollar amount should have two digits after the decimal point. Hint: use setprecision and fixed.
Assume the movie title will be one word ie Alien, Jaws, Godfather, Rocky, etc.
Not allowed to hardcode prices or percentages in your calculations
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started