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

The recipe produces 48 cookies with this amount of the ingredients. Write a prog

ID: 3784486 • Letter: T

Question

The recipe produces 48 cookies with this amount of the ingredients. Write a program t at asks the user how many cookies he or she wants to make, and then displays the number of cups of each ingredient needed for the specified number of cookies. Box Office A movie theater only keeps 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 ask for the name of the movie, and how many adult and child tickets were sold. (The price of an adult ticket is $10.00 and a child's ticket is $6.00.) It should display a report similar to

Explanation / Answer

// C++ code
#include <iostream>
#include <string>
#include <fstream>
#include <stdlib.h>
#include <math.h>

using namespace std;


int main()
{
string movie;
int adulttickets,childtickets;

cout << "Movie Name: ";
getline(cin, movie);

cout << "Adult Tickets Sold: ";
cin >> adulttickets;

cout << "Child Tickets Sold: ";
cin >> childtickets;

double grossprofit = adulttickets*10.00 + childtickets*6.00;
double netprofit = 0.2*grossprofit;
double amountdistributor = grossprofit- netprofit;

cout << "Gross Box Office Profit: $" << grossprofit << endl;
cout << "Net Box Office Profit: $" << netprofit << endl;
cout << "Amount Paid to Distributor: $" << amountdistributor << endl;

}


/*
output:

Movie Name: Wheels By Fury
Adult Tickets Sold: 382
Child Tickets Sold: 127
Gross Box Office Profit: $4582
Net Box Office Profit: $916.4
Amount Paid to Distributor: $3665.6


*/

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