Question: Problem Description Write a C + + program that calculates how much money was made from ticket sales for a recent concert. Rather than count

Problem Description
Write a C++ program that calculates how much money was made from ticket sales for a recent concert. Rather than count how many seats there are, we will take a shortcut. We will input how many rows of seats there are, and how many seats per row. This will help us figure out how many seats total there are in the venue. Then we will just count the empty seats. This will tell us how many seats are actually filled (and therefor sold). Finally we will ask for the ticket price. Using this information we will come up with a total amount of money for all the tickets sold. We then want to figure out how much the AVERAGE price of the ticket was if we counted ALL the seats in the venue - including the ones that were not sold (those seats would be $0).
Input specification
The program should prompt the user for three integer values and one double value. The prompts should be the same as in the sample interaction below.
Output specification
The program should display the following results:
Number of seats total in the venue
Number of seats sold (or filled)
Price of each ticket sold
How much money total
How much money per seat
The output should be formatted identically to the sample interaction below.
User input shown in bold.
$./a. out
This program calculates ticket sale details.
Enter the number of rows in venue: 5
Enter the number of seats per row: 10
Enter the number of empty seats: 4
Enter the price of each ticket: 15
Results:
Number of seats in venue: 50
Number of seats sold: 46
Price of each ticket: 15
Total amount for sold tickets: 690
Average price per venue seat: 13.8
$
The '$' character represents your shell prompt. Your program should not print it.
Specific Program Requirements:
Use only the
 Problem Description Write a C++ program that calculates how much money

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!