i'm desperate!! it's due tomorrow and i don't even know where to begin.
somebody please please pleaseeeeeeee help meeeee =(((((
I'm supposed to write a program for Charities, Inc.
PART 1:
This program will take user input in the following order:
1. Number of tickets sold.
2. 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.
3. Total amount of prize money distributed.
4. Name of charity. The name may consist of more than one word.
The program then will output the following information in the following order:
1. Name of charity.
2. Total revenue generated from the ticket sales. The price of each ticket is currently fixed at $5.00.
3. Total amount of administrative overhead.
4. Total amount of prize money overhead.
5. Balance remaining for the charitable fund.
A sample run with sample input data would be:
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
PART 2:
Make a copy of your solution to part 1 and modify it as follows.
The umbrella organization, Charities, Inc., has decided to reward its
charities for ticket sales by contributing a bonus amount according to the
following sales:
Number of Ticket Sales
Amount of Bonus Contribution
less than 10,000
$0.0
10,000 - 24,999
$3,000.00
25,000 - 49,999
$8,000.00
50,000 - 99,999
$15,000.00
100,000 or more
$25,000.00
In addition, your program should flag any amount of zero or less for the number
of tickets sold as invalid, and the program should then terminate.
Restrictions: Do not use return other than at
the end of main, and do not use the exit() function
Sample Run
A
sample run with sample input data
would be:
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
Bonus contribution:
$ 15000.00
Balance raised for charitable
fund: $
245000.00