Write your question here.
This is what my instructor gave me to correct and debug, I have no clue what to do, I am so lost I passed the tests with questions but hands on I am lost...Is there a way to understand this in an easier way, my instructor is not explaining it right to me, I asked him several times and its the same outcome.
Thanks
Carmen
// Concert4 Fill in Blanks
//
// ADD STATEMENT 1 BELOW TO INCLUDE THE IOSTREAM LIBRARY
//
// ADD STATEMENT 2 BELOW TO USE NAMESPACE STANDARD LIBRARY
//
//
// ADD STATEMENT 3 BELOW TO START MAIN
{
//declare constants and variables
//
// ADD STATEMENT 4 BELOW TO DECLARE A CONSTANT INTEGER VARIABLE
// NAMED "ORCHESTRA_PRICE" AND INITIALIZE IT TO BE 25
const int MAIN_FLOOR_PRICE = 30;
const int BALCONY_PRICE = 15;
// ADD STATEMENT 5 BELOW TO DECLARE AN INTEGER VARIABLE
// NAMED "orchestraTickets" AND INITIALIZE IT TO BE ZERO
int mainFloorTickets = 0;
int balconyTickets = 0;
//
// ADD STATEMENT 6 BELOW TO DECLARE AN INTEGER VARIABLE
// NAME "orchestraRevenue" AND INITIALIZE IT TO BE ZERO
int mainFloorRevenue = 0;
int balconyRevenue = 0;
int totalRevenue = 0;
//
cout << "Concert4 Program Answers.\n\n";
//enter number of tickets in each seating category
cout << "Orchestra tickets: ";
//
// ADD STATEMENT 7 BELOW TO INPUT THE ORCHESTRA TICKETS
cout << "Main floor tickets: ";
//
// ADD STATEMENT 8 BELOW TO INPUT THE MAIN FLOOR TICKETS
cout << "Balcony tickets: ";
//
// ADD STATEMENT 9 BELOW TO INPUT THE BALCONY TICKETS
//calculate revenues
orchestraRevenue = orchestraTickets * ORCHESTRA_PRICE;
mainFloorRevenue = mainFloorTickets* MAIN_FLOOR_PRICE;
balconyRevenue = balconyTickets * BALCONY_PRICE;
//
// ADD STATEMENT 10 BELOW TO CALCULATE TOTAL REVENUE
// CALCULATE TOTAL REVENUE BY ADDING THE ORCHESTRA REVENUE AND THE MAIN FLOOR
// REVENUE AND THE BALCONY REVENUE
It looks as though your teacher wants you to insert the code that corresponds with the command in all caps. For instance, for "ADD STATEMENT 1 BELOW TO INCLUDE THE IOSTREAM LIBRARY" you would insert the statement: #include<iostream> . You should be able to find the statements in your textbook.