Enable contrast version

# Tutor profile: Sohil P.

Inactive
Sohil P.
Medical Student at UCSF
Tutor Satisfaction Guarantee

## Questions

### Subject:Java Programming

TutorMe
Question:

What does the following nested loop print out? for (int i = 5; i >= 0; i--) { for (int j = 0; j < i; j++) { System.out.print("*"); } System.out.println(); }

Inactive
Sohil P.

When dealing with nested loops, always start with the inner loop! The inner loop prints out "*" from j = 0 to j = i. We know that j now depends on the value of i. Let us now look at the outer loop to determine the value of i. The initial value of i is 5. Therefore, on the first iteration of the outer loop, the inner loop goes from j =0 to j = 5. First iteration of outer loop: ***** (5x) and then a newline Now, let us look at the second iteration of the outer loop, where i = 4. The inner loop then repeats from j = 0 to j = 4: Second iteration of outer loop: **** (4x) and then a newline This process continues, that is the number of stars decreases by 1 on every line until i = 0. So on the last iteration of the outer loop, the inner loop goes form j = 0 to j = 0, but since j = i, the inner loop stops, and nothing is printed. So the final output would be: ***** **** *** ** *

### Subject:Biology

TutorMe
Question:

Explain the Central Dogma of biology.

Inactive
Sohil P.

The Central Dogma of biology explains how proteins are made in the cell. Proteins are essential to the processes in your cells: most serve as catalysts for reactions in your body, but others perform miscellaneous functions as well. Protein synthesis starts with the DNA located in your nucleus. RNA polymerase (which is a protein itself!) transcribes, or reads a sequence of nucleotides called a gene. As RNA polymerase reads the nucleotides, it synthesizes a new sequence of nucleotides corresponding to the read sequence. This new sequence is the mRNA. The mRNA then exists the nucleus and enters the cytoplasm. Ribosomes (which are made of proteins and RNA) translate the mRNA sequence into amino acids. The translation works according to a universal genetic code. The chain of amino acids produced by the ribosome is called a protein!

### Subject:Algebra

TutorMe
Question:

Simplify the following complex equation: $(-4+4i)(3+2i)$

Inactive
Sohil P.

Using distributive property, let us expand the terms. We can treat $i$ as a variable. $(-12 - 8i +12i +8i^2)$ Combining like terms: $(-12 + 4i + 8i^2)$ $i^2$ is just -1: $(-12+4i-8)$ $4i - 20$

## Contact tutor

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

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