The recipe produces 48 cookies with this amount of the ingre
Solution
// 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
*/
