Write a static double method called


Can you implement these methods in a program?

Program: Write a class called Misc that has no instance variables. In this class

- Write a static double method called evaluateQuadraticPolynomial that takes four double parametersa, b, c, and x and returns the value of ax^2 + bx + c

- Write a static method speed that computes and returns the speed of an object after t seconds of acceleration, given that the object was traveling initially at v0 meters per second and then accelerated ata meters per second per second, where speed = v0 + a*t

- Write a static method distance that computes and returns the distance traveled in t seconds by an object that started at rest and then accelerated at a meters per second per second, where distance = (a * t^2) / 2

- Write a static method height that computes and returns the height of an object at time t seconds after it has been given an initial speed v0 at an angle of theta and where gravity is 9.8 m/sec^2, whereheight = v0 * sin(theta) * t - 9.8 * t^2 / 2

- Write a main method in your class Misc that tests each of the above methods

- Write a new class called TestMisc with a main method that also tests each of the above methods. In addition, it should simulate the height of a football kicked at an angle of 45 degrees with a speed of 80 miles per hour (38.7 meters per second). That is, it should compute and print the height every 0.1 second until the height becomes 0 (the football hits the ground)

Be sure to include comments. The comment should describe the purpose of the program and the data to be entered - Prepare this program in java programming

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write a static double method called
Reference No:- TGS0953950

Expected delivery within 24 Hours