Question: 1. Implement the following integer or float methods: a. Method celsius returns the celsius equivalent of a fahrenheit temperature. celsius = 5.0 / 9.0 *
1. Implement the following integer or float methods:
a. Method celsius returns the celsius equivalent of a fahrenheit temperature. celsius = 5.0 / 9.0 * (fahrenheit - 32)
b. Method fahrenheit returns the fahrenheit equivalent of a celsius temperature. fahrenheit = 9.0 / 5.0 * celsius + 32
c. Use methods a & b above to write an application that enables the user either to enter a fahrenheit temperature and display the celsius equivalent or vice versa.
Please note: this assignment will only generate one java file. That file should have three methods main() Where all input and output occurs celsius() & fahrenheit() Which convert the temperature and return the results. No input or output occurs in these methods
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
