Question: Read in 2 floating-point numbers x and y from input and use the Math class and methods to complete the following 1. Find the

Read in 2 floating-point numbers x and y from input and use

 

Read in 2 floating-point numbers x and y from input and use the Math class and methods to complete the following 1. Find the max of the 2 numbers 2. Find the log base 10 of x 3. Compute x raised to the power of y 4. Find the Square root of xy raised to the power of x 5. Compute the sin. The sin method takes an argument of radians and we would like degrees for the angle here so let's convert to degrees. Just multiply x by m (use Math Pl) and divide by 180 Use System.out.printf('stuff % 2e ", yourValue); for all output when raising numbers to a power (#3 and 4 above) Use System.out.printf(stuff%2fn, yourValue), for all other Math operations above Ex If the input is 45 73:2 the output is Maximum number of x and y is: 73.20 Log base 10 of x-1.65 x raised to y 1.04e+121 The square root of xy raised to x = 1.416+79 sin(x) 0.71 LAM ACTIVITY 241.1 LAB: Using math methods part deux 0/10 LabProgram java Lot of plate 1 import java.util.Scanner; 3 public class LabProgram ( public static void main(String[] args) { Scanner scnr new Scanner(System.in); double x double yi Type your code here,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!