my code ran but for the distributor I need 80% to be the number to be the total cost and 80% of it taken out, i used 80/100 and got the total collected multiply by that, but it shows 0.
#include <iostream>
#include <string>
using namespace std;
int main()
{
int Adult_Tickets;
int Child_Tickets;
const int Adult_Price = 6;
const int Child_Price = 3;
cout << "Adult Tickets sold: " << endl;
cin >> Adult_Tickets;
cout << "Child_Tickets sold: " << endl;
cin >> Child_Tickets;
double Total_collected;
int Total_tickets;
double Average_amount;
const int Amount_paid = (80/100);
double Amount_paid_to_distributor;
double Profit;
Total_collected = (float)(Adult_Tickets * Adult_Price) + (Child_Tickets * Child_Price);
Total_tickets = (float)(Child_Tickets + Adult_Tickets);
Average_amount = (float)Total_collected / Total_tickets;
Amount_paid_to_distributor = (float)Total_collected * Amount_paid;
Profit = (float)Total_collected - Amount_paid_to_distributor;
cout << "Total Collected $: " << Total_collected << endl;
cout << "Average amount collected per ticket $: " << Average_amount << endl;
cout << "Amount paid to distributor $: " << Amount_paid_to_distributor << endl;
cout << "Profit $: " << Profit << endl;
system("pause");
return 0;
}