Add this static method to your program use the output of


Purpose:

Use simple I/O operations on primitive data types.

Write and use static methods (functions).

Start the Java IDE.

Use the IDE to write a program that will prompt the user for the temperature in degrees Celsius (Centigrade). Write a static method (static function) named cToF that converts degrees Celsius to degrees Fahrenheit. The degrees Celsius to degrees Fahrenheit formula is given here:

F=(9/5)C+32

Remember you must write a static method that takes the Celsius value as a parameter and returns the Fahrenheit equivalent.

Now write a static method named fToC convert degrees Fahrenheit to degrees Celsius. Add this static method to your program. Use the output of the cToF conversion method as the input for the fToC conversion method.

Your main method should print the output temperatures from both static methods in a clear and readable form.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Add this static method to your program use the output of
Reference No:- TGS02905433

Expected delivery within 24 Hours