TutorMe homepage
Subjects
PRICING
COURSES
SIGN IN
Start Free Trial
Ashutosh A.
Senior Developer at Infosys
Tutor Satisfaction Guarantee
SQL Programming
TutorMe
Question:

find out the second highest number scored by the student in mathematics. Table name "math_marks", Column name "marks"

Ashutosh A.
Answer:

SELECT MAX(marks) FROM math_marks WHERE marks<>( SELECT MAX(marks) FROM math_marks);

Java Programming
TutorMe
Question:

solve the quadratic equation through a java program

Ashutosh A.
Answer:

import java.util.Scanner; public class roots { public static void main(String[] Strings) { Scanner input = new Scanner(System.in); System.out.print("Input a: "); double a = input.nextDouble(); System.out.print("Input b: "); double b = input.nextDouble(); System.out.print("Input c: "); double c = input.nextDouble(); double result = b * b - 4.0 * a * c; if (result > 0.0) { double r1 = (-b + Math.pow(result, 0.5)) / (2.0 * a); double r2 = (-b - Math.pow(result, 0.5)) / (2.0 * a); System.out.println("The roots are " + r1 + " and " + r2); } else if (result == 0.0) { double r1 = -b / (2.0 * a); System.out.println("The root is " + r1); } else { System.out.println("The equation has no real roots."); } } }

Basic Math
TutorMe
Question:

if 3x-y=12. what is 8^x/2^y?

Ashutosh A.
Answer:

Approach is to express 8^x/2^y with the same base. like we can write 8 as 2^3. Since 2 and 8 are both powers of 2, substituting 2^3 for 8 in the numerator of 8^x/2^y gives (2^3)^x/2^y which can be rewritten as 2^3x/2^y. Since the numerator and denominator of have a common base, this expression can be rewritten as 2^(3x−y). In the question, it states that 3x−y=12, so one can substitute 12 for the exponent, 3x−y, giving that the 8^x/2^y=2^12

Send a message explaining your
needs and Ashutosh will reply soon.
Contact Ashutosh
Ready now? Request a lesson.
Start Session
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 Session" 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.