Enable contrast version

# Tutor profile: Ashutosh A.

Inactive
Ashutosh A.
Senior Developer at Infosys
Tutor Satisfaction Guarantee

## Questions

### Subject:SQL Programming

TutorMe
Question:

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

Inactive
Ashutosh A.

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

### Subject:Java Programming

TutorMe
Question:

solve the quadratic equation through a java program

Inactive
Ashutosh A.

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."); } } }

### Subject:Basic Math

TutorMe
Question:

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

Inactive
Ashutosh A.

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

## Contact tutor

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