Need help with this code: You can convert a temperature from degrees Fahrenheit into degrees Celsius by
Fantastic news! We've Found the answer you've been seeking!
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 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)
Related Book For
Posted Date: