program instructions consider the following program segment: //include statement(s) //using namespace statement int main() { //variable declaration //executable statements //return statement } 1. write a c statement that includes the header file iostream. 2. write a c statement that allows you to use cin, cout, and endl without the prefix std::. 3. write c statement(s) that declare the following variables: num1, num2, num3, and average of type int. 4. write c statements that store 125 into num1, 28 into num2, and -25 into num3. 5. write a c statement that stores the average of num1, num2, and num3, into average. 6. write c statement(s) that output the values of num1, num2, num3, and average. 7. compile and run your program. 8. include your name, course as a comment at the top of the program. 9. comment each line of the program explaining what lines does.

Respuesta :

In computing, a code segment, also known as a text segment or simply as text, is a portion of an object file or the corresponding section of the program's virtual address space that contains executable instructions.

What is a program?

A computer program is a comprehensive plan or procedure for using a computer to solve a problem; more specifically, it's a clear, sequential list of computational instructions that can be used to arrive at a solution of this kind. Software and hardware are terms used to distinguish between computer programs and hardware, respectively.

Computers can execute numerous tasks sequentially or even sporadically thanks to the programs that are stored in their memory. By the end of the 1940s, mathematician John von Neumann, who was born in Hungary, had developed the concept of an internally stored program. The "Baby," built in Manchester in 1948, was the first digital computer to be created with internal programming capability.

The program for the given data

#include<iostream>      //include statement(s)

using namespace std;   //using namespace statement

int main()

{   //variable declaration

   int num1,num2,num3;

   float average;

   

   //executable statements

   num1=125;

   num2=28;

   num3=-25;

   average=(num1+num2+num3)/3.0;  //average of num1,num2 and num3

   //print values of num1,num2,num3 and average

   cout<<"num1= "<<num1<<"\n";

   cout<<"num2= "<<num2<<"\n";

   cout<<"num3= "<<num3<<"\n";

   cout<<"average= "<<average;

   return 0;//return statement

}

The algorithm

 start:

   Declare num1,num2,num3 and average

   set average=(num1+num2+num3)/3

   print num1,num2,num3,average

   stop  

The flowchart

(see the attached file)

Learn more about program

https://brainly.com/question/26134656

#SPJ4

Ver imagen AyushiJain10