Reference no: EM13700667
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
Calculate the cell potential at 25 celsius
: Question- A galvanic cell consists of an Au/Au3+ electrode (Eo=+1.50v) and a cu/cu2+ electrode (eo=+0.34v). Calculate the cell potential (Ecell) at 25 Celsius if [Au3+]=2.8x10-7 M and [Cu2+]=7.3x10-5
|
Random number generator to create a symmetric matrix
: Use a random number generator to create a symmetric matrix - without using built-in MATLAB commands, using the Power Method in combination with the Method of Deflation, obtain the eigen values & eigenvectors of the matrix
|
What is the ph of a buffer prepared by adding of weak acid
: Question- What is the pH of a buffer prepared by adding 0.405mol of the weak acid HA to 0.608mol of NaA in 2.00 L of solution. The dissociation constant Ka of HA is 5.66×10?7.
|
Write a program that draws a picture of a house
: Write a program that draws a picture of a house. It could be as easy as the accompanying figure, or if you like, make it more elaborate (3-D, skyscraper, marble columns in the entryway, whatever).
|
Write a class called misc that has no instance variables
: 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
|
How many dissociated h+ ions are there in aqueous solution
: Question- At 25 °C, how many dissociated H+ ions are there in 341 mL of an aqueous solution whose pH is 11.47
|
Write a void method that takes as a parameter
: Write a Point class. A Point should have the subsequent - Write a void method that takes as a parameter an array of Lines and prints out the location of each intersection. The intersection of any two lines should only be printed once
|
What is the mass percent water in cobalt(ii) hexahydrate
: This is due to the fact that the hydrate is a deep magenta color while the anhydrous form is a pale blue. As the humidity level changes, the color changes as well. What is the mass percent water in cobalt(II) hexahydrate
|
Write a bag class with a generic type
: Write a Bag class with a generic type. Write a class such as item that has a name and price - Add objects of item to the bag and find the average and the total of the price of all items in the bag.
|