divider

Objective

Create a console application that converts a temperature from Celsius to Fahrenheit based on user input.

Skills to Practice

  • icon Prompting a user for input
  • icon Saving user input to variables
  • icon Converting input to the correct data type (if necessary)
  • icon Performing arithmetic calculations
  • icon Formatting custom output using variables
divider

Tasks

  • icon Create a project named celtofahr-lastname.
  • icon Complete the following tasks:
    • icon Prompt the user to enter a temperature in Celsius.
    • icon Convert the celsius value from the user to the equivalent value in fahrenheit.
    • icon Formula: F = C × 1.8 + 32
    • icon Optionally, round the answer to two decimal places.
    • icon Display the calculated Fahrenheit temperature to the user in a clear and formatted manner.
    • icon If you want to use the degree symbol in your output, I've provided it here to copy and paste: °

Sample Output

Sample Output
--- Celsius to Fahrenheit Calculator ---
Enter the temperature in Celsius: 62 [Enter]
62°C is equal to 143.6°F

Begin Challenge