Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can anyone help me with this. the overall output should be total income from sale of tickets is 117.00. ill like upon completion. I 20

image text in transcribed
image text in transcribed
Can anyone help me with this. the overall output should be "total income from sale of tickets is 117.00". ill like upon completion.
I 20 21 22 23 24 25 26 1 // This program ask the user for the number of tickets 2 // sold for each of the following classes 3 // Class A - $15 each Class B - $12 each 5 // Class C - $ 9 each 6 // Then it calculates the total sales and displays the result 7 // in fixed-point notation, with two decimal places of 8 // precision, and the decimal point is always displayed. 9 // 10 // Author: Diego Padilla 11 // Date: 02/06/2021 12 // 13 #include 14 #include 15 using namespace std; 16 17 int main() 18 { 19 Il Declare variables Here Il Declare three constants to hold Class prices // Set the desired output formatting for numbers // BEFORE SUBMITTING TO VOCAREUM 11 Comment out the cout statement that tells the user what to enter. 27 Il Do not delete; just add double forward slashes before the statement. Il Prompt user for input on the number of Class A tickets sold 30 1/ Prompt user for input on the number of Class B tickets sold 32 33 1/ Prompt user for input on the number of Clsass C tickets sold 34 35 36 1/ Calculate the total ticket sales 37 38 39 1/ Display the total ticket sales 40 cout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

More Books

Students also viewed these Databases questions