// Nicolas Ruano #15
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
int main() {
const double ADULT_TICKET_PRICE = 6.00;
const double CHILD_TICKET_PRICE = 3.00;
const double THEATER_PERCENT = 0.20; // 20% goes to theater
string movieName;
int adultTickets, childTickets;
double grossProfit, netProfit, distributorAmount;
// Input
cout << "Enter the name of the movie: Wheels of Fury\n";
getline(cin, movieName); // Use getline for movie names with spaces
cout << "Enter the number of adult tickets sold: 382\n";
cin >> adultTickets;
cout << "Enter the number of child tickets sold: 127\n";
cin >> childTickets;
// Calculations
grossProfit = (adultTickets * ADULT_TICKET_PRICE) + (childTickets * CHILD_TICKET_PRICE);
netProfit = grossProfit * THEATER_PERCENT;
distributorAmount = grossProfit - netProfit;
// Output formatted report
cout << fixed << setprecision(1);
cout << "\nMovie Name: " << movieName << endl;
cout << "Adult Tickets Sold: 382" << adultTickets << endl;
cout << "Child Tickets Sold: 127" << childTickets << endl;
cout << "Gross Box Office Profit: $2673.00" << grossProfit << endl;
cout << "Net Box Office Profit: $534.60" << netProfit << endl;
cout << "Amount Paid to Distributor: $2138.40" << distributorAmount << endl;
return 0;
}