Wednesday

July 23, 2014

July 23, 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...

computer science - IHow do you refractor this: public class Employee { private ...

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

C++ - For each of the following problems, write a program or a program segment ...

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

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

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

Java programming - can anybody help me.. Multidimensional Array Use a two-...

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

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