PROMPT FOR TicketsSold
PROMPT FOR %AdministerativeOverhead
PROMPT FOR TotalAmountofPrizeMoneyDistributed
PROMPT FOR SoccerTeamName
REMARK Each Ticket Cost $10
TotalRevenue = 10 * TicketsSold
AbsoluteAdministerativeOverhead = TotalRevenue * %AdministerativeOverhead / 100
Balance = TotalRevenue - (AbsoluteAdministerativeOverhead + TotalAmountofPrizeMoneyDistributed)
OUTPUT SoccerTeamName
OUTPUT TotalRevenue
OUTPUT AbsoluteAdministerativeOverhead
OUTPUT TotalAmountofPrizeMoneyDistributed
OUTPUT Balance
PROMPT FOR is a combination of cout to print a prompt to the user followed by cin to read a value.
OUTPUT is just a cout to output the data.
banfa so far i got this:
#include <iostream>
using namespace std;
int main()
{
int tickets,value;
cout<<"Name of soccer team";
cout<< "number of tickets sold?";
cin>>tickets;
Comment