Wednesday, July 28, 2010

C++ HELP! NEED HELP. 10 points for best advice?

#include%26lt;iostream%26gt;


#include%26lt;fstream%26gt;


#include%26lt;string%26gt;





using namespace std;





int main ()


{





string movieName;


int number_of_seniors_tix_sold;


int number_of_adults_tix_sold;


int number_of_children_tix_sold;


double gross_profit;


double net_profit;


double amount_paid_to_distributor;


double everything_total;


double total_tickets_sold;


ofstream moviefile;


moviefile.open (';movie.txt';);


double senior_tickets_profit;


double children_tickets_profit;


double adult_tickets_profit;





cout%26lt;%26lt; ';Please enter movie name';%26lt;%26lt;endl;


getline(cin, movieName);





cout%26lt;%26lt; ';Please enter the number of senior tickets sold'; %26lt;%26lt;endl;


cin%26gt;%26gt; number_of_seniors_tix_sold;





cout%26lt;%26lt; ';Please enter the number of adult tickets sold'; %26lt;%26lt;endl;


cin%26gt;%26gt; number_of_adults_tix_sold;





cout%26lt;%26lt; '; Please enter the number of children tickets sold';%26lt;%26lt;endl;


cin%26gt;%26gt; number_of_children_tix_sold;





senior_tickets_profit = number_of_seniors_tix_sold * 8.50;


adult_tickets_profit = number_of_adults_tix_sold * 13.00;


children_tickets_profit = number_of_children_tix_sold * 4.75;





total_tickets_sold = number_of_children_tix_sold + number_of_adults_tix_sold + number_of_seniors_tix_sold;





gross_profit = senior_tickets_profit + children_tickets_profit + adult_tickets_profit;





amount_paid_to_distributor = .55* gross_profit;


net_profit = gross_profit-amount_paid_to_distributor;








moviefile %26lt;%26lt; total_tickets_sold %26lt;%26lt;endl;


moviefile %26lt;%26lt; gross_profit %26lt;%26lt;endl;


moviefile %26lt;%26lt; net_profit%26lt;%26lt; endl;


moviefile %26lt;%26lt; amount_paid_to_distributor%26lt;%26lt; endl;





return 0;C++ HELP! NEED HELP. 10 points for best advice?
WHAT THE HELL?





THIS IS OFF TOPIC BUT OH WELL





90% of锘?teens would breakdown if Miley Cyrus was standing on the edge of a 6 story building... repost this if you would be the 10% sayin JUMP *****!!C++ HELP! NEED HELP. 10 points for best advice?
what the ????
????? WHAT R U TALKING ABOUT!!!!!!

No comments:

Post a Comment