Explore BrainMass

Explore BrainMass

    Temperature conversion Java Application

    Not what you're looking for? Search our solutions OR ask your own Custom question.

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    I need help with putting this application together:

    Exercise 6.22:

    Implement the following integer methods:

    a.) Method Celsius returns the Celsius equivalent of a Fahrenheit temperature, using the calculation
    Celsius = 5.0 / 9.0 * ( Fahrenheit - 32 );

    b.) Method Fahrenheit returns the Fahrenheit equivalent of a Celsius temperature, using the calculation
    Fahrenheit = 9.0 / 5.0 * Celsius + 32;

    c.) Use the methods from parts (a) and (b) to write an application that enables the user either to enter a Fahrenheit temperature and display the Celsius temperature and display the Fahrenheit equivalent.

    © BrainMass Inc. brainmass.com November 30, 2021, 3:19 am ad1c9bdddf

    Solution Preview


    I am attaching three files. The first two are .Java files: Convert.java and ConvertTest.java

    The other file ...

    Solution Summary

    This solution provides a Java application to perform temperature conversion from fahrenheit to celsius and vice versa.