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

  Prepare a program for a bank that allows the user

Prepare a program for a bank that allows the user to enter an amount of money in cents. Show the number of whole dollars the bank will give the customer in exchange.

  Program in c to ask the user to input a set of characters

Write a program in C++ to ask the user to input a set of characters, one at a time separated by the carriage return (Enter). Each character, as well as, its corresponding ASCII value should be stored in a linked list node. This means that each nod..

  Order of evaluation of arithmetic expressions

Why is the order of evaluation of arithmetic expressions important? Illustrate your answer with an example showing the effect parentheses can have on the way an expression is evaluated.

  Write a program that right-justifies text

Write a program that right-justifies text. It should read and echo a sequence of left-justified lines and then print them in right-justified format.

  Write c program to read one ip address

Write a C or C++ program which Read one IP address at a time from Dec_IPAddresses.txt and convert it into Hex. Store converted values stored in another file (e.g. HEX_IPAddresses.txt).

  Write a function named xytopolar

Write a function named "XYtoPolar" that has 2 double value parameters and 2 double reference parameters that converts x,y coordinates to polar coordinates. The prototype is: void XYtoPolar(double x, double y, double* angle, double* radius);

  C++ essay & coding

Create codes for the following problem/s. Compile, test run, and edit them if necessary. Include your original .cpp and related file(s) (if any) in a single folder. Compress (zip) the folder and submit the single zipped folder.

  Develop and implement an interactive two-player yahtzee game

Eliminate redundancy within a program by applying loops and functions - Create structure charts for a given problem and determine an appropriate functional decomposition or top-down design from a structure chart

  Same birthday

How likely is it that two people in one section of our class (40 students) have the same birthday ?

  Implement a circle class

Implement a Circle class. Each object of this class will represent a circle, storing its radius and the x and y coordinates of its center as floats. Include a default constructor, access functions, an area() function, and a circumference() functio..

  Prepare a program for a retail-mart company

Prepare a program for a company Retail-Mart.

  Using mingw compiler on windows

Need to make a code in c++ and.  using MinGW compiler on windows. One last thing please make a makefile.

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