Question: Consider the following program segment: / / include statement ( s ) / / using namespace statement int main ( ) { / / variable

Consider the following program segment:
//include statement(s)
//using namespace statement
int main()
{
//variable declaration
//executable statements
//return statement
}
Write a C++ statement that includes the header file iostream.
Proceed through all the steps in this activity by clicking the navigation arrows at the bottom of this pane after completing each step.
Task #01: Correct header files included
Task #02: Correct namespace statement used
Task #03: All variables declared of type int
Task #04: All variables initialized correctly
Task #05: Correct values of all variables output to screen
Instructions
Final Step:
Write C++ statement(s) that output the values of num1, num2, num3, and average.
Then compile and run your program by clicking the blue run button on the right side of the screen.Consider the following program segment:
//include statement(s)
//using namespace statement
int main()
{
//variable declaration
//executable statements
//return statement
}
Write a C++ statement that includes the header file iostream.
Proceed through all the steps in this activity by clicking the navigation arrows at the bottom of this pane after completing each step.
Task #01: Correct header files included
Task #02: Correct namespace statement used
Task #03: All variables declared of type int
Task #04: All variables initialized correctly
Task #05: Correct values of all variables output to screen
Instructions
Final Step:
Write C++ statement(s) that output the values of num1, num2, num3, and average.
Then compile and run your program by clicking the blue run button on the right side of the screen.

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!