Enable contrast version

Tutor profile: Buchi O.

Busy in a lesson
Buchi O.
3rd Grade Teacher and Tutor for Over 3 years
Tutor Satisfaction Guarantee

Questions

Subject: Python Programming

TutorMe
Question:

Create a for-loop that counts from 0 to a 100 by 10s.

Inactive
Buchi O.
Answer:

What? A for-loop iterates over a collection of items, such as list or dict, and it runs a block of code with each element from the collection. There are two types of for-loops: For each and For i loops. For i loops - for iterating by index of the sequence For each loops - for iterating by element of the sequence How? To count up we can use a for i loop and range function. The general format for that is: for i in range(start, stop, step) The start is 0, stop is 101 (since the loop stops before reaching the stop value), and the step will be 10 (since we ate counting by 10s). Final Answer: for i in range(0, 101, 10): print(i)

Subject: Pre-Algebra

TutorMe
Question:

What are all the positive factors of 18?

Inactive
Buchi O.
Answer:

What? Factors are numbers we can multiply together to get another number. How? To solve this problem we need to see all couples of numbers that multiply to 18? 1 x 18 = 18, 2 x 9 = 18, and 3 x 6 = 18 Therefore, all the positive factors of 18 are: 1, 2, 3, 6, 9, 18

Subject: C++ Programming

TutorMe
Question:

How do you code a switch statement in C++?

Inactive
Buchi O.
Answer:

What? A switch statement allows a variable to be tested for equality against a set of values. Rather than a lengthy if...else if...else statement, switch statements are clearer and quicker to construct. Also, switch statements are great for constructing menus. How? A switch statement is coded as shown below: switch (Controlling_Expression) { case Constant_1: Statement_Sequence_1 break; case Constant_2: Statement_Sequence_2 break; case Constant_3: Statement_Sequence_n break; default: Default_Statement_Sequence } Important Note: - You need not place a break statement in each case. If you omit a break, that case continues until a break (or the end of the switch statement). - The constant-expression for a case must be the same data type as the variable in the switch, and it must be a constant or a literal.

Contact tutor

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

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.
BEST IN CLASS SINCE 2015
TutorMe homepage
Made in California by Zovio
© 2013 - 2021 TutorMe, LLC
High Contrast Mode
On
Off