Answered step by step
Verified Expert Solution
Question
1 Approved Answer
bellow it 8. Given the following program, answer the questions be Winclude iostream> using namespace std const float PI 3.14157; int numl; float sall; char
bellow it 8. Given the following program, answer the questions be Winclude iostream> using namespace std const float PI 3.14157; int numl; float sall; char chl; void getinfo(float, int) foat setdata (int&, float&, char& int main (O f int num2; float result, sal2; char ch2; return 0; float setdata (int &a, float & b, char &c) int i,j void getinfo (float x, int y) Write a function call to setdata from main. Use the locally declared variables. b. Write a function call to getinfo from main. Use the locally declared variables. c. Based on your answers above, identify all arguments d. Write the complete headings of all the functions in the program. a. (2 pts) (2 pts) (2 pts) (3 pts) e. Write the names of all the global identifiers excluding functions. (4 pts) f. Write the names of all of the local identifiers that are not parameters. (4 pts) g. Identify all parameters in all functions (2 pts)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started