Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

For the code listed below, draw a box around the sction of the code to enclose t

ID: 3634788 • Letter: F

Question

For the code listed below, draw a box around the sction of the code to enclose the scope of each variable and determine the data type of the argurments that the funl() & func2() functions expect the data type of the value these functions return.

#include <ionsttream>
using namespace std;
const char KEY;
const long NUMBER;
int main()
{
int a,b,c;
doublex,y;
.
.
return 0;
}
double secnum;
int funcl(int num1, num1)
{
int o,p;
float q;
.
.
return p;
}
double func2(double first, double last)
{
int a,b,c,o, p;
double r;
double s,t,x;
.
.
return s * t;
}

Explanation / Answer

#include using namespace std; const char KEY; const long Number; int main() { int a,b,c; doublex,y; // a,b,c,x,y are local to main function return 0; } double secnum; int funcl(int num1, num1) { int o,p; float q; // o and q are local varaible and local to this function . return p; } double func2(double first, double last) { int a,b,c,o, p; double r: double s,t,x; /// varaibles a,b,c,o, p and r x are local to this function return s *t; }