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

3. Draw a chart: A movie theater only keeps a percentage of the revenue earned f

ID: 3774806 • Letter: 3

Question

3. Draw a chart: A movie theater only keeps a percentage of the revenue earned from ticket sales. The remainder goes to the distributor.

Design a program that calculates a theater's gross and net box office profit for a night. The program should ask for the name of the movie, and how many adult and child tickets were sold. (The price of an adult ticket is $6.00 and a child's ticket is $3.00.) It should dis­play a report similar to

Movie Name:                       "How about them Dawgs"

Adult Tickets Sold:             382

Child Tickets Sold:             127

Gross Box Office Profit:     $ 2673.00

Net Box Office Profit:          $   534.60

Amount Paid to Distributor:            $ 2138.40

4. Draw a flow chart: A company has an unknown number of employees. The company decided to help employees to overcome their budgeting problem as follows: Each employee gets extra money based on the age of their dependents, if age of child is less than six, company pays $50 for each year of the child age, if age of child is less than ten, company pays $30 for each of the child age, otherwise company pays $20 for each child over ten. Design a program that prints each employee’s name, number of child/children and at end of program print total extra money company paid to the employees.

Explanation / Answer

#include<stdio.h>
#include<string.h>
#include<stdlib.h>
void main()
{    
        int i,j;
        char s[50];
        printf("Enter Movie Name");
        scanf("%s",s);
        printf("Enter Adults");
        scanf("%d",&i);
        printf("Enter Child");
        scanf("%d",&j);
        printf(" ");
        printf("Movie: %s ",s);
        printf("Total Adults: %d ",i);
        printf("Total Childs: %d ",j);      
        printf("Total gross income: $%d ",i*6+j*3);
        printf("Net box profit: $%f ",(i*6+j*3)*.20);
        printf("Amount to be paid to distributer: $%f ",(i*6+j*3)*.80);      
}

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