Enable contrast version

# Tutor profile: Saurabh S.

Inactive
Saurabh S.
Engineer, Computer Scientist
Tutor Satisfaction Guarantee

## Questions

### Subject:Physics (Newtonian Mechanics)

TutorMe
Question:

In the absence of friction (or any other kind of dissipation, like wind), a force is needed to make a moving object keep on moving. True or False?

Inactive
Saurabh S.

False. In the absence of any force to stop the object, it won't require any force to keep the object moving. If a force is applied, it will either increase its velocity or decrease it to zero and then increase in opposite direction depending on the direction of force applied.

### Subject:Linear Algebra

TutorMe
Question:

Given $$\vec w​$$ =(−5,−4). Find -2$$\vec w​$$.

Inactive
Saurabh S.

In general, the scalar multiple of k times $$\vec u$$ is this: k$$\vec u$$ = k($$u_x$$,$$u_y$$) = ($$ku_x$$, $$ku_y$$) So, here's how we find -2$$\vec{w}$$: -2$$\vec w$$ = -2$$\cdot$$(-5,-4) = ( -2 $$\cdot$$ (-5) , -2 $$\cdot$$ (-4) ) =(10,8)

### Subject:C++ Programming

TutorMe
Question:

Count the number of set bits in all numbers from 1 to n.

Inactive
Saurabh S.

int countingBits(int n){ int count=0,i=0,j=0; //We iterate numbers 1 to n for(i=1;i<=n;i++){ j=i; // This Will sets all set bits of number one by one starting from last bit // For each iteration, we increase the number of count by one while(j){ j= (j&(j-1)); count++; } } // We return answer return count; }

## Contact tutor

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