Question: Using Scheme!!!! 6. Create a recursive procedure called (sum-odds max), where maxis a number. The procedure should return the sum of all positive odd numbers

Using Scheme!!!!

6. Create a recursive procedure called (sum-odds max), where maxis a number. The procedure should return the sum of all positive odd numbers up to and including max. For example: (sum-odds 10) should give25.(Hint: you can check if a number is odd using the form odd?)[8points]

7.Create a recursive procedure called (fib a) to compute terms in the Fibonacci sequence:given a, find the a'th Fibonacci number.Sample output: (fib 0) should give 0, (fib 9) should give 34. [8points]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!