Kevin Wahome
7/4/24
Completed
This program allows users to convert temperatures between Celsius and Fahrenheit with an option to perform multiple conversions. The result is displayed with 2 decimal precision.
- Convert from Celsius to Fahrenheit
- Convert from Fahrenheit to Celsius
- User-friendly console interface
- Option to perform multiple conversions
- Results displayed with 2 decimal precision
-
Compile the Java program: javac temperature_converter.java
-
Run the compiled class file: java temperature_converter
-
Follow the on-screen prompts to perform temperature conversions.
program: Hello User, it appears you want to handle temperature conversions today:}
program: 1 to convert from Celsius to Fahrenheit or 2 convert from Fahrenheit to Celsius.
user: 2
program: Enter the temperature in Fahrenheit
user: 32
program: Fahrenheit 32.0 converted to Celsius 0.00
Program: Want to convert again? (Y/N)
user: N
Program: Thank you for converting :]
This project is open-sourced under the MIT license.