hmmm im really stuck
so this is what we need to do
This program will take user input in the following order:
Number of tickets sold.
Percentage of ticket revenue which goes to administrative costs. This input will be entered in percent format (see sample runs below); your program must convert this to a decimal fraction. For example, the user enters 25% as 25, not .25; you convert the 25 to .25 in your code.
Total amount of prize money distributed.
Name of charity. The name may consist of more than one word (that is, have embedded spaces).
The program then will output the following information in the following order:
Name of charity.
Total revenue generated from the ticket sales. The price of each ticket is currently fixed at $5.00.
Total amount of administrative overhead.
Total amount of prize money overhead.
Balance remaining for the charitable fund
example run
How many tickets were sold? 50000
What percentage of the ticket revenue goes to administrative costs? 2
How much total money is distributed in prizes? 15000
What is the name of the charity? Good Intentions
Charity: Good Intentions
Revenue generated from ticket sales: $ 250000.00
Amount deducted for administrative overhead: $ 5000.00
Amount deducted for prize money: $ 15000.00
Balance raised for charitable fund: $ 230000.00
thats all i got so far >,<, any help? im lost
#include<iostream>
#include<iomanip>
#include<string>
using namespace std;
int main()
{
int ticketssold, percentticket, moneyprizes;
string charity;
cout <<"1.Number of tickets sold?: ";
cin >> ticketssold;
cout <<"2.What percentage of the ticket revenue goes to administrative costs?: ";
cin >> percentticket;
cout <<"3.How much total money is distributed in prizes?: ";
cin >> moneyprizes;
cin.ignore();
cout <<"4.What is the name of the charity?: ";
getline(cin,charity);
cout << left <<"Charity:" << right << setw(50) << charity << endl;
cout << left <<"Revenue generated from ticket sales:" << right
system("pause");
return 0;
}