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
Answer import javautilArrays public class Driver public static void mainString args A 598732 B 59870... View full answer
Get step-by-step solutions from verified subject matter experts
