Enable contrast version

# Tutor profile: Kevin T.

Inactive
Kevin T.
Software Engineering Intern at Western Digital
Tutor Satisfaction Guarantee

## Questions

### Subject:Physics (Newtonian Mechanics)

TutorMe
Question:

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.

Inactive
Kevin T.

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

TutorMe
Question:

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

Inactive
Kevin T.

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

TutorMe
Question:

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

Inactive
Kevin T.

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

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