# Tutor profile: Kevin T.

## Questions

### Subject: Physics (Newtonian Mechanics)

If a 25 kg ball is dropped from 10 meters above the ground, how long will it take for the ball to reach the ground? Assume there is no air resistance.

The mass of the ball does not affect the time it will take to fall. If we assume that the acceleration due to gravity is -9.8 m/s^2, we can simply use projectile motion equations. Final Height = Initial Height + Initial Velocity * Time + 1/2 Acceleration time Time Squared 0 = 10 + 0*t + .5 (-9.8)t^2 -10 = -4.8t^2 2.08 = t^2 1.44 = t It would take approximately 1.44 seconds for an item to reach the ground if dropped from 10 meters above the ground.

### Subject: Java Programming

Provide pseudo-code to implement a binary search for an array.

int firstIndex =0, lastIndex = length - 1, mid; while (first <= last){ mid = (first + last)/2; if (list[mid] == item) return mid; if (list[mid] > item) last = mid -1; else first = mid +1; } return -1;

### Subject: C++ Programming

Write a header file that allows the class to overload the following operators: << >> ==

class test{ friend ostream& operator<< (ostream&, const complexType&); friend istream& operator>> (istream&, complexType&); friend bool operator== (const stock&, const stock&); //rest of .h file }

## Contact tutor

needs and Kevin will reply soon.