Calculates the total ticket sales after each game

Assignment Help C/C++ Programming
Reference no: EM13937629

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 a file in the following form

ticketPrice numberOfTicketsSold

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. Output the number of tickets sold and the total sale amount. Format your output with two deciamal places.

Reference no: EM13937629

Questions Cloud

Analyze the company modes of foreign involvement : Compare and contrast the company's global sourcing of equity and debt financing strategies with the strategies utilized by its nearest competitor. Evaluate the company's strategy toward international diversification by illustrating both the ben..
What is the par value of the companys common stock : What is the par value of the company's common stock? Did the company issue any new shares during the fiscal year ended December 31, 2006?
The general journal entry to record this transaction : On September 1, Ziegler Corporation had 71,000 shares of $5 par value common stock, and $213,000 of retained earnings. On that date, when the market price of the stock is $15 per share, the corporation issues a 2-for-1 stock split. The general journa..
What is estimate of intrinsic value per share : The Generic Genetic (GG) Corporation pays no cash dividends currently and is not expected to for the next 4 years. Its latest EPS was $5.2, all of which was reinvested in the company. The firm’s expected ROE for the next 4 years is 18% per year, duri..
Calculates the total ticket sales after each game : The first line indicates that the ticket price is $250 and that 5750 tickets were sold at that price. Output the number of tickets sold and the total sale amount. Format your output with two deciamal places.
Largest to a smallest colour class : Given a graph G and a proper vertex r-colouring c : V(G) ! [r], we can draw an auxiliary directed graph Ac on vertex set [r] by putting, for each i 6= j, an arc !i j if there is a vertex in c1(i) which has no neighbours in c1(j) (in other words, i..
Write a c code to find the sum of n natural numbers : Write a C++ code to find the sum of n natural numbers up to given term.
Telecommunications from university of south australia : Have recently completed my masters in telecommunications from university of south Australia and i want to assess my bachelors degree(electronics) with engineers Australia" student wants it to be assesed in electronics as he wants his bachelors de..
Essay on the topic brazilian students : Elaborate the essay on the topic Brazilian students and U S Culture Shock into 5 or 6 pages and reorganize the ideas.

Reviews

Write a Review

 

C/C++ Programming Questions & Answers

  Complete the 8 queens 2 dimensional array

Complete the 8 queens 2 dimensional array program with backtracking. please change the below program using backtracking  and please run before posting it . the program suppose to print 92 solution . amd also comment before each line to better unde..

  Question 1 use the attached database to provide the

question 1 use the attached database to provide the relational algebra which would list the requested information

  To reverse the order of elements on a stack

Write a program in C++ to  reverse the order of elements on a stack S using two additional stacks using one additional stack

  C programs hat print out the max, min, and the average value

Write three C programs that print out the max, min, and the average values of the data file included below. Be sure to include the outputs of the programs in your solutions. Use three data file structures (counter, sentinel, and neither counter/senti..

  Optimize the preceding code for kathy

Optimize the preceding code for Kathy and find out the errors (if any). What would be the output of the preceding code, if the first number is 46 while the second number is 37?

  Overflow in a traditional data type

Wrap around and continue the cancellation until only one element remains. As the Fibonacci number will overflow in a traditional data type, take modulus of the number with 1000000007.

  Calculate the cube of a number

Write a program that will calculate the cube of a number. Do this by writing a user defined function that returns the cube of the value passed to it. Print out the results from main.

  Write Relational Algebra queries

Attributes cid and fid in Reservation are foreign keys referencing homonymous attributes in Customer and Flight, respectively. Write Relational Algebra queries

  Write a program in which the program print out the input

use (switch statement) to write a program in which the program print out the input (single character) if the character is not '2','t', or 'w'. Use 'default' and 'break' wisely.

  Write a program that will find the smallest number

How to do the subsequent program WITHOUT USING Arrays - Write a program that will find the smallest, largest, and average values in a collection of N numbers. Get the value N before scanning each value in the collection of N numbers.

  Implement uniform random number generator

Implement Uniform Random Number generator and Generate 1000 Random number between 0 an 10000.

  Our string class always deletes the old character

Our String class always deletes the old character buffer and reallocates a new character buffer on assignment or in the copy constructor. This need not be done if the new value is smaller than the current value

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd