Monday, July 27, 2009

Program this for me (c++) (learning)?

A movie theater only keeps a percentage of the revenue earned from ticket


sales. The remainder goes to the movie company. Write a program that calculates


a theater's gross and net box office profit for a night. The program should ask


for the name of the movie, and how many adult and child tickets were sold. The


price of an adult ticket is $6.00 and a child's ticket is $3.00. It should


display a report similar to:





Movie Name: "Death Grip"


Adult Tickets Sold: 382


Child Tickets Sold: 127


Gross Box Office Profit $ 2673.00


Net Box Office Profit $ 534.60


Amount Paid to Distributor: $ 2138.40





Note: Assume the theatre keeps 20% of the gross box office profit.





make sure u line up the numbers.





please write the code and help me learn it... i learn best from others... im really trying to learn it... thanks


rob

Program this for me (c++) (learning)?
No, no, no... You learn best from doing it yourself. Enjoy your homework assignment.
Reply:just try to do it when you strunded call for help
Reply:you should find the math for this relatively easy. As for lining up the output, the escape character for horizontal tab, "\t", is your best friend. Try posting some code and have us look at it.


No comments:

Post a Comment