Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need to be done in Excel For each question, you need to show: -variables involved. -variables type (i.e. int double, ...etc) -initial value -run each

Need to be done in Excel

For each question, you need to show: -variables involved. -variables type (i.e. int double, ...etc) -initial value -run each instruction and modify the content of each variable accordingly. You are required to show every instruction executed at each stage. -show the final value held by each variable after all instruction are executed. Important! You must use only the technique we covered in class. No other technique will be accepted. Important! use Excel to complete your answers. You need to create separate file for each answer: -Open Excel -Copy and paste the question on the sheet. -Start your answer to the right side using the area to include variables, type, Initial Values, code executed and the effect on involved variables, and Final Values -Upload your solution and then move on to next question Also, failing to show the actual instructions executed and their effects on the content of variables will not gain you any credit.

.

.

int f1 = 1;

int f2 = 2;

int f3 = 0;

int limit = 4;

int fibValue = 0;

while(limit > 1)

{

f3 = Fibo(f1, f2);

fibValue = fibValue + f3;

limit--;

}//end while(limit > 1)

.

.

int Fibo(int x, int y)

{

int z = 0;

z = x + y;

return z;

}//end

.

.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Programming questions

Question

What type of office space and equipment are provided?

Answered: 1 week ago