Question: unit 4-6 help this is what I have but it is not working squatendenuy yipiti: 11 Task 2: Determine the sine of 300 double sineof
unit 4-6 help this is what I have but it is not working





squatendenuy yipiti: 11 Task 2: Determine the sine of 300 double sineof 300= Math. sin(Math. toped antof(3or)): System.out.println("The sine of 300 is +sineofiog); 1) Task 3: Determine the cosine of 300 double cosine0f 300= Math. cos( Math. tofadians ( 320)); System.out.primtln("The cosine of 300is++cosine0f300); I/ Task 4: Determine the floor, ceil1ing, and Iounded value of 22,8 18 double value0f22.8 =22.8; int floorValueof 22_8= (int) Math. ftopr (valueof 22_8); int ceilingValue0f22_8 = (int) Math. celi (valueOf22_8); int roundedValueOf22_8 = (int) Math. ipund (value0f22_8); System.out. orintin("The floor of 22.8 is " floorvalueof22_8) ceilingValue0f 228 ); 24. System.out.pininin("The rounded value of 22.8 is It roundedvalue0f22-8); I/ Ungraded Task 1: The larger and the smaller of the character 0 and the integer 71 char characterd =D1 int integer 71=71; System. out.printin("The larger of the character D and the integer 71 is " + Math. max (characterD, integer 71) ) System.out.printlin("The smaller of the character D and the integer 71 is + Math.min (characterD, integer 71) ); 1) Ungraded Task 2: A random number between 0 and 20 double randomNumber = Math. random ()20; System.out.pIintln("A random number between and 20 is " + randomNumber); Create the MathTest class. Determine the square root of 37 . Determine the sine of 300 . Determine the cosine of 300 . Determine the floor, ceiling, and rounded value of 22.8. Instructions Write a Java application called MathTest that uses the Math class to determine the answers for each of the following and print them to the console: - The square root of 37 - The sine and cosine of 300 - The value of the floor, ceiling, and round of 22.8 Tasks Create the MathTest class. Determine the square root of 37. Determine the sine of 300 . Determine the cosine of 300. Determine the floor, ceiling, and rounded value of 22.8. Ungraded The larger and the smaller of the character D and the integer 71 A random number between O and 20 Hint: The random() method returns a value between 0 and 1 ; you want a number that is 20 times larger. Objectives This lab will focus on your ability to create multiple Jar classes and use them as objects in other classes to cre a working a program. Tasks The tasks in this lab will verify that each class has been created and that the necessary constants, variables, an methods are included and work as expected. If you get task wrong, it will display an error message with details and a hint on why your code did not pass. Grading Write your code in the Code Editor. Use the Run button t compile and run your code. Click each Task checkbox to run tests against your code to calculate your grade. Once you are satisfied with your results, select the Submit button in the-Tasks panel on the left navigation bar. You can use the Run Checks button if you choose to review all Tasks at once before submission
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
