Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C++ please The manager of a football stadium wants you to write a program that c

ID: 3671353 • Letter: C

Question

C++ please

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, sideline, premium, and general admission. After each game, data is stored in a file in the following form: ticketPrice numberOfTicketsSold Sample data are shown below: the first line indicates that the ticket price is dollar 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 decimal places.

Explanation / Answer

// program to claculate total tickets sold and total gross ammount #include #include #include using namespace std; int main() { //declare variables ifstream inFile; int ticketPrice; int noOfTicketSold; inFile.open("c:\Dev-Cpp\inFile.txt"); if (inFile.fail ()) { cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote