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

please show work and it\'s one questions with parts please solve all parts CSC 2

ID: 3915335 • Letter: P

Question

please show work and it's one questions with parts please solve all parts

CSC 211-SUMMER 2018-Instructor: A. Alfano Hills Name: NEATNESS COUNTS...ILLEGIBL.EmR INCORRECT: PLEASF PRINI TRACE means SHOW ALL WO (Yesi NAME on ALL PAGES) PHease work on this sheet and place the LETTER ONLY of the correct answer there r RECEIVE NO CHEDILsALIM? 9) TRACE COMPLETELY (on this page and/or the next us SHOW THE OUPUT and then SELECT THE MATCHING CORRECT ANSWER for #include using namespace std; char let; int Final (int &numl;, int sum2 doable Final (double numl, double &num2;): int main) int a, b, c: double l?5]-(1, 2, 3, 4, 51; a 200; b- 100; c 10; let-A' e- Final(a, b) liaelol- Final(lne|2], lisel2] for (int i " ?, i

Explanation / Answer

Answer is Not there in the list

Correct Answer is

6.1

2

3.1

4

5 X

in array we are having the 5 elements

1 2 3 4 5 so for final function we are passing the line[2] which is 3,

into num1=3,num2=3, here num2 is reference variable so what ever change in the num2 it reflect in the array

num3 = 3.1

num2=num3;

so num2=3.1 and

array will be 1 2 3.1 4 5

sum = num1+num2;

sum = 6.1

and we are returning the array and storing the sum in 0th location of array

so now array will be

6.1 2 3.1 4 5

initially let is 'A' but we changed in int Final()

now let is 'X'