Question: 1) Write a Java method maned sqrIt) that computes the square of the value passed to it and displays the result. The function should be

 1) Write a Java method maned sqrIt) that computes the square

1) Write a Java method maned sqrIt) that computes the square of the value passed to it and displays the result. The function should be capable of squaring numbers with decimal points 2) Write a Java method named powFun() that raises an integer number passed to it to a positive integer power and displays the result. The positive integer should be the second value passed to the method. Declare the variable used to store the result as a long integer data type to ensure sufficient storage for the result 3) Write a Java method that produces a table of the numbers from 1 to 10, their squares, and their cubes. See sample output below NUMBER SQUARE CUBE 1 8 27 64 125 216 343 512 729 1000 1 2 16 25 3 6 49 64 81 100 10 A second-degree polynomial in x is given by the expression ax2 + bx + c, where a, b, and c are known numbers and a is not equal to zero. Write a method named polyTwo (a, b, c, x) that computes and returns the value of a second-degree polynomial for any passed values of a, b, c, and x 4)

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!