# Tutor profile: Jonah B.

## Questions

### Subject: Java Programming

Write a function that solves the recursive equation a(n) = a(n-1) + a(n-2)%4, given a(0) = 1 and a(1) = 1. The function should take in one parameter and return an integer. Test the function with these inputs: 0, 1, 4, 10.

int myFunction (int n) { if (n == 0 || n == 1) return 1; return myFunction(n-1) + myFunction(n-2)%4; } myFunction(0): 1; myFunction(1): 1; myFunction(4): 5 myFunction(10): 13

### Subject: Music

Write the interval between the following 3 pairs of notes (assume that the first note is lower and intervals are less than 1 octave): C - F, G# - D, Bb - Ab

4, dim 5, and dominant (minor) 7

### Subject: Calculus

Consider the region in the plane enclosed by the equations y = (x - 1)(x - 1) and y = x(1-2x) + 1. Given the intersection points, (0, 1) and (1, 0), calculate the area of the enclosed region.

1/2 square units

## Contact tutor

needs and Jonah will reply soon.