Enable contrast version

Tutor profile: David C.

Inactive
David C.
MIT undergrad, pretty good at high school science
Tutor Satisfaction Guarantee

Questions

Subject: Python Programming

TutorMe
Question:

How do I figure out if I have a string or an int?

Inactive
David C.
Answer:

You can use type or isinstance, or (the generally accepted way) is to enclose your code in a try/except block.

Subject: Physics (Newtonian Mechanics)

TutorMe
Question:

How can you analyze the mechanics of a system of connected rigid bodies?

Inactive
David C.
Answer:

If you have the computation time and energy, you can break it up into as many small parts and organize the individual force vectors on the small things. If there are organization groups that help reduce this, then you can start collapsing things together into larger bodies and larger force vectors.

Subject: C++ Programming

TutorMe
Question:

What happens when an object is declared via the new keyword, versus implicitly?

Inactive
David C.
Answer:

When "new" is used, space is allocated for the object on heap memory (vs stack memory). This means the object exists out of the local scope, which is great for some uses, but can also lead to memory leaks.

Contact tutor

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

Request lesson

Ready now? Request a lesson.
Start Lesson

FAQs

What is a lesson?
A lesson is virtual lesson space on our platform where you and a tutor can communicate. You'll have the option to communicate using video/audio as well as text chat. You can also upload documents, edit papers in real time and use our cutting-edge virtual whiteboard.
How do I begin a lesson?
If the tutor is currently online, you can click the "Start Lesson" button above. If they are offline, you can always send them a message to schedule a lesson.
Who are TutorMe tutors?
Many of our tutors are current college students or recent graduates of top-tier universities like MIT, Harvard and USC. TutorMe has thousands of top-quality tutors available to work with you.