1 answer

Write program in java 5. Falling Distance When an object is falling because of gravity, the...

Question:

5. Falling Distance When an object is falling because of gravity, the following formula can be used to determine the distance write program in java
5. Falling Distance When an object is falling because of gravity, the following formula can be used to determine the distance the object falls in a specific time period: d = 1/2 gta The variables in the formula are as follows: d is the distance in meters, g is 9.8, and t is the amount of time, in seconds, that the object has been falling. Write a method named fallingDistance that accepts an object's falling time (in seconds) as an argument. The method should return the distance, in meters, that the object has fallen during that time interval. Demonstrate the method by calling it in a loop that passes the values 1 through 10 as arguments, and displays the return value. 6. Centigrade Temperature Table The formula for converting a temperature from Fahrenheit to Centigrade is Cu (F-32) where F is the Fahrenheit temperature and C is the Centigrade temperature. Write a method named centigrade that accepts a Fahrenheit temperature as an argument. The method should return the temperature, converted to Centigrade. Demonstrate the method by call- ing it in a loop that displays a table of the Fahrenheit temperatures 0 through 20 and their Centigrade equivalents.

Answers

Answer 1:


public class FallingDistance {
   public static void main(String[] args) {
      
       for(int i=1;i<10;i++)
           System.out.println(getDistance(i));
   }

   private static double getDistance(double t) {
       return 0.5 * 9.8 * t *t;
   }
}

3 public class FallingDistance { 4C public static void main(String [] args) { 5 for (int i-1;i<10; i++) System.out.println (g

Answer 2:


public class Temparature {
   public static void main(String[] args) {
       for(int i=0;i<200;i++)
       System.out.printf("%d\t%.2f\n",i,centigrade(i));
   }

   private static double centigrade(int a) {
       return 5.0/9 * (a-32);
   }

}

-17.78 0 1 -17.22 2 -16.67 -16.11 -15.56 5 -15.00 6 -14.44 7 -13.89 -13.33 -12.78 10 -12.22 11 -11.67 -11.11 12 13 -10.56 14

Note : Please comment below if you have concerns. I am here to help you

If you like my answer please rate and help me it is very Imp for me

.

Similar Solved Questions

1 answer
A pediatric ward in a metropolitan hospital has the following information: Resources Cost of Resources Activities...
A pediatric ward in a metropolitan hospital has the following information: Resources Cost of Resources Activities Nursing hours Supervision $80,000 Supervising nurses 2,000 Supplies and uniforms 40,000 Treating patients 5,000 Salaries 500,000 Providing hygienic care 4,000 ...
1 answer
Employing a data model permits the designer to present data visually. These models focus on representing...
Employing a data model permits the designer to present data visually. These models focus on representing the data in terms of a user’s viewpoint. Let’s say you are required to perform the diagramming process. What role does the entity-relationship (ER) diagram play in the design process?...
1 answer
Marvel Parts, Inc., manufactures auto accessories. One of the company's products is a set of seat...
Marvel Parts, Inc., manufactures auto accessories. One of the company's products is a set of seat covers that can be adjusted to fit nearly any small car. The company has a standard cost system in use for all of its products. According to the standards that have been set for the seat covers, the...
1 answer
Please help with the last couple of calculations on the chart and then the calculations on the bo...
Please help with the last couple of calculations on the chart and then the calculations on the bottom? Just a little confused. Thank you!! Table 1: Specific Heat Capacity of Common Substances Substance Specific Heat Capacity H2O Ice at 0d Seam at 100°C Aluminum Chromium Lead Magnesium Manganese ...
1 answer
USING PYTHON *Write a program, in which the user enters two numbers, then divides the first...
USING PYTHON *Write a program, in which the user enters two numbers, then divides the first number by the second, and prints the result to two decimal places. *Make sure that that the inputs are floats (with exception handling using the ValueError). *Make sure that there is no divide by zero error (...
1 answer
The Show “Who Shot Mr. Burns?” is the only two-part episode of the Simpsons to date. Part One is ...
The Show “Who Shot Mr. Burns?” is the only two-part episode of the Simpsons to date. Part One is the twenty-fifth and final episode of the sixth season and originally aired on the Fox network on May21, 1995. Part Two is the season premiere of the seventh season and originally aired on Se...
1 answer
3. Paying taxes on stocks What It Means to Invest in Stocks? Common stock is considered...
3. Paying taxes on stocks What It Means to Invest in Stocks? Common stock is considered to be one of the most popular investment vehicles for long-term wealth building. Investors earn income from common stock in the form of dividends and/or capital gains. As an investor it is important to understand...
1 answer
10) During your investigations of the bird species Biondo's night heron on the FGCU campus, you...
10) During your investigations of the bird species Biondo's night heron on the FGCU campus, you encounter two contrasting strains of individuals. Strain 1 has white beaks and green eyes. Strain two has black beaks and yellow eyes. You cross strain 1 females with strain 2 males. The resulting Fi&...
1 answer
Legal Ethics of healthcare class. match each one with corresponding based on the Torres-Lazarini v United...
Legal Ethics of healthcare class. match each one with corresponding based on the Torres-Lazarini v United states case QUESTION 5 Match the element of the Torres-Lazarini v. United States with its descriptor Torres-Lazarini had a fall and his first x-ray showed no dae buta precursor to degenerative b...
1 answer
Under the cartel model, each firm produces where Group of answer choices marginal cost equals marginal...
Under the cartel model, each firm produces where Group of answer choices marginal cost equals marginal revenue. price equals marginal cost. the average cost curve is at a minimum. price exceeds marginal cost by the greatest amount....
1 answer
Quadrilateral JKLM has vertex coordinates J(2,4), K(6,1), L(2,-2), and M(-2,1). What type of quadrilateral is JKLM?
Quadrilateral JKLM has vertex coordinates J(2,4), K(6,1), L(2,-2), and M(-2,1). What type of quadrilateral is JKLM?...
1 answer
+ -/1.09 points Tipler6 28.P.033.soln. My Notes A 130 turn circular coil has a diameter of...
+ -/1.09 points Tipler6 28.P.033.soln. My Notes A 130 turn circular coil has a diameter of 2.00 cm and resistance of 53.0 2. The plane of the coil is perpendicular to a uniform magnetic field of magnitude 1.00 T. The direction of the field is suddenly reversed. (a) Find the total charge that passes ...
1 answer
At what nominal rate of interest, convertible monthly, is $10,000 the present value of $164.64 paid...
At what nominal rate of interest, convertible monthly, is $10,000 the present value of $164.64 paid at the beginning of each month for 7 years? Round your answer to 3 decimal places....
1 answer
Need help with hand calculations! Find VL (an equation that includes the input current pulse's delay)...
Need help with hand calculations! Find VL (an equation that includes the input current pulse's delay) in the following circuit using the Laplace transform. Sketch VL from 0 to 1 us ensuring you label the axis. (15 points) 1. R1 VL 3K PULSE(-1mA 1mA 100n) L1 100uH R2 1k .tran 1u...