Project Title: Temperature Converter Programming Language: Java Project Description: This project is a Temperature Converter that allows the user to convert temperatures between Celsius (°C) and Fahrenheit (°F). The program asks the user to input a temperature value and its current unit, then calculates and displays the converted temperature in the other unit. Key Features: Converts Celsius to Fahrenheit and Fahrenheit to Celsius. Accepts input in both uppercase and lowercase (C/c or F/f). Displays results with clear formatting. Handles invalid input gracefully by showing an error message. How it Works: User inputs a temperature value. User inputs the unit of the temperature (C or F). The program checks the unit: If it’s Celsius, it converts to Fahrenheit using the formula: F = (C × 9/5) + 32 If it’s Fahrenheit, it converts to Celsius using the formula: C = (F − 32) × 5/9 Displays the converted temperature. Use Case: This program can be used by students, weather enthusiasts, or anyone needing a quick temperature conversion between Celsius and Fahrenheit.
Log in or sign up for Devpost to join the conversation.