Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Unit 4: Programming Excersise 4-6 Need in JAVA Objectives This lab will focus on your ability to create multiple Java classes and use them as
Unit 4: Programming Excersise 4-6 Need in JAVA
Objectives This lab will focus on your ability to create multiple Java classes and use them as objects in other classes to create a working a program. Tasks The tasks in this lab will verify that each class has been created and that the necessary constants, variables, and methods are included and work as expected. If you get a 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 to 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. 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 0 and 20 Hint: The random() method returns a value between 0 and 1 ; you want a number that is 20 times larger. 4: Programming Exercise 4-6 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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started