Executable statements

Consider the following program segment:

//include statement(s)

//using namespace statement

int main()

 //variable declaration  

//executable statements  

//return statement

a. Write a C++ statement that includes the header file iostream.

b. Write a C++ statement that allows you to use cin, cout, and endl without the prefix std::.

c. Write C++ statement(s) that declare the following variables: num1, num2, num3, and average of type int.

d. Write C++ statements that store 125 into num1, 28 into num2, and -25 into num3.

e. Write a C++ statement that stores the average of num1, num2, and num3 into average.

f. Write C++ statement(s) that output the values of num1, num2, num3, and average.

g. Compile and run your program.

WhatsApp
Hello! Need help with your assignments?

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102

🛡️ Worried About Plagiarism? Run a Free Turnitin Check Today!
Get peace of mind with a 100% AI-Free Report and expert editing assistance.

X