Enable contrast version

Tutor profile: Soujanya K.

Inactive
Soujanya K.
Technical Manager and Mentor
Tutor Satisfaction Guarantee

Questions

Subject: Java Programming

TutorMe
Question:

Reverse a String "Tutorme" using Java .

Inactive
Soujanya K.
Answer:

public class Reverse { public String reverseString(String str) { if ((str==null)||(str.length() <= 1) ) return str; return reverseString(str.substring(1)) + str.charAt(0); } public static void main(String[] args) { Reverse rev=new Reverse (); String str = "Tutorme"; System.out.println("Reverse of string is "+rev.reverseString(str)); } } See below as to how it will run in recursion: reverseString("Tutorme") (reverseString("utorme")) + "T" ((reverseString("torme")) + "u") + "T" (((reverseString("orme")) + "t") + "u") + "T" (((((reverseString("rme"))+ "o")+ "t") + "u") + "T" ((((((reverseString("me"))+"r")+"o")+ "t") + "u") + "T" ((((((reverseString("e"))+"m")+"r")+"o")+ "t") + "u") + "T" "emrotuT"

Subject: Databases

TutorMe
Question:

$$EmpID$$ | $$FullName$$ | $$ManagerID$$ | $$DateJoined$$ 1 John Doe 3 01/01/2016 2 Jane Doe 2 02/02/2017 3 Sam Doe 5 03/03/2018 From the $$EmployeeDetails$$ table above write a SQL query to fetch all the Employees who are also managers

Inactive
Soujanya K.
Answer:

we have to use Self-Join on the above table since we need to treat them as two different tables, but the information is provided in only one table. SELECT DISTINCT E.FullName FROM EmployeeDetailsE INNER JOIN EmployeeDetailsM ON E.EmpID = M.ManagerID $$EmpID$$ | $$FullName$$ | $$ManagerID$$ | $$DateJoined$$ 1 John Doe 3 01/01/2016 2 Jane Doe 2 02/02/2017

Subject: Algebra

TutorMe
Question:

If $$x^2+1/x^2$$ = 83.Find the value of $$x^3-1/x^3$$.

Inactive
Soujanya K.
Answer:

We know that $$(x-1/x)^2$$ = $$x^2+1/x^2 -2$$ based on identity $$(a-b)^2$$=$$a^2+b^2-2ab$$ $$(x-1/x)^2$$ = $$83-2$$= 81 (i.e $$9^2$$) $$(x-1/x)^2$$ = $$9^2$$ $$(x-1/x)$$ = $$9$$ (if we remove the sqares on both sides ) Now lets find value for $$(x-1/x)^3$$ = $$9^3$$ $$x^3-1/x^3 -3(x-1/x)$$ = $$729$$ (using identity $$(a-b)^3$$=$$a^3-3a^2b+3ab^2-b^3$$) $$x^3-1/x^3 -3(9)$$ = $$729$$ (Replacing$$ (x-1/x)$$ =9 from above steps) $$x^3-1/x^3$$= 729 +27 $$x^3-1/x^3$$=756 and that is the Answer.

Contact tutor

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

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.