Q BgQuestion:

      
Rookie
Karma Points: 0
Respect (100%):
posted by  DESPERATE111 on 11/3/2009 3:54:23 PM  |  status: Live  |  Earned Karma: 0

C++ program assignment. HELP PLEASE!!!!

Course Textbook Chapter Problem Needs by
N/A N/A N/A N/A 11/4/2009 at 11:00:00 PM
Question Details:
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


AAnswers:

Answer Question Ask for clarification

No one has answered this question yet.

Be the first to answer. Earn up to 3 karma points.

Answer Question Ask for clarificarion

Join Cramster's Community

Cramster.com brings together students, educators and subject enthusiasts in an online study community. With around-the-clock expert help and a community of over 100,000 knowledgeable members, you can find the help you need, whenever you need it. Join for free today » How Cramster is different from tutoring »