In: Computer Science
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
int main() {
string name;
int adults, children;
cout << "Enter the name of the movie: ";
getline(cin, name);
cout << "Enter how many Adult tickets were sold: ";
cin >> adults;
cout << "Enter how many Child tickets were sold: ";
cin >> children;
double total = (adults*10) + (children*6);
double distributor=0.8*total;
cout << setprecision(2) << fixed;
cout << "\nMovie Name: \"" << name << "\"" << endl;
cout << "Adult Tickets Sold: " << adults << endl;
cout << "Child Tickets Sold: " << children << endl;
cout << "Gross Box Office Profit: $" << total << endl;
cout << "Net Box Office Profit: $" << (total - distributor) << endl;
cout << "Amount Paid to Distributor: $" << distributor << endl;
return 0;
}