Question: Need help with this code: You can convert a temperature from degrees Fahrenheit into degrees Celsius by using C=(5/9)(F-32). Below are attempting to write an

Need help with this code:

You can convert a temperature from degrees Fahrenheit into degrees Celsius by using C=(5/9)(F-32). Below are attempting to write an expression in Java that use this formula to convert 87 degrees F to Celsius. Determine the value and the data type of the result of each of the following Java expressions by placing each expression inside a System.out.println statement. For each expression, include a comment indicating wheter the expression correctly converts 87 degrees to Celsius

A. 5/9*(87-32)

B. 5/9*(87.0-32)

C. (87.0-32)*5/9

D. (87.0-32)*(5/9)

Step by Step Solution

3.45 Rating (168 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer import javautilArrays public class Driver public static void mainString args A 598732 B 59870... View full answer

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 Electrical Engineering Questions!