TutorMe homepage
Subjects
PRICING
COURSES
Start Free Trial
Jonah B.
Experienced Tutor
Tutor Satisfaction Guarantee
Java Programming
TutorMe
Question:

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.

Jonah B.

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

Music
TutorMe
Question:

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

Jonah B.

4, dim 5, and dominant (minor) 7

Calculus
TutorMe
Question:

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.

Jonah B.

1/2 square units

Send a message explaining your
needs and Jonah will reply soon.
Contact Jonah