Thursday

April 17, 2014

April 17, 2014

Posted by **Dave** on Thursday, August 27, 2009 at 9:10am.

Private Function F(x as Int, y As Int, z as Int)

If (y = 1) then

Return 2

Else

Return x * Z - y + F(x-1,y-1, z)

End If

End Function

- Computers -
**Jordan**, Thursday, August 27, 2009 at 9:36amif this is your code

Private Function F(x as Int, y As Int, z as Int)

If (y = 1) then

Return 2

Else

Return x * Z - y + F(x-1,y-1, z)

End If

End Function

what is your test data. if you test this code with y=1 then you will get an answer of 2, else Return x * Z - y + F(x-1,y-1, z)

- Computers -
**Dave**, Thursday, August 27, 2009 at 9:50amThe test data I'm using is y = 3. I tried using a trace table, but I get back to 2. Not sure how to get an answer in the form x * Z - y. Any help will be much appreciated.

Thanks

**Related Questions**

discrete math - 1. let A and B be sets. Show that A U (B - A)=A U B 2. determine...

art - The statement "form follows function" means function over form, form over ...

programming - I really need help in this it makes me confuse.I should make a ...

Algebra - input =9 output = 2 what is the function. input = 27 output = 8 what ...

Algebra function problem, check/help? - Set up a function for the following ...

computer science - 9.10: Reverse Array Write a function that accepts an int ...

I NEED HELP MATH - i have my input output table but i dont know how to complete ...

College Algebra - Find the inverse of the function below. Graph the function ...

Math Calculus - Economists use production functions to describe how output of a ...

Math (UBC) - Economists use production functions to describe how output of a ...