Purchase Solution

C++: football ticket sales program

Not what you're looking for?

Ask Custom Question

The manager of a football stadium wants you to write a program that calculates the total ticket sales after each game. There are four types of tickets box, sidelline, premium and general admission. After each game data is stored in the following form

ticketPrice numberOfTicketsSold

For example, in the sample data shown below,

250 5750
100 28000
50 35750
25 18750

the first line indicates that the ticket price is $250 and that 5750 tickets were sold at that price. Program reads these numbers from the keyboard, and outputs the number of tickets sold and the total sale amount on the monitor. Format the output with two decimal places.

Purchase this Solution

Purchase this Solution


Free BrainMass Quizzes
Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

C++ Operators

This quiz tests a student's knowledge about C++ operators.