Flowgorithm

Convert Fahrenheit to Celsius

Convert Fahrenheit to Celsius

In this tutorial, you will learn the steps to design a Flowgorithm Flowchart to Convert temperature from Fahrenheit to Celsius.

Fahrenheit (°F) and Celsius (°C) are two common temperature scales used to measure heat.

  • Fahrenheit (°F): Primarily used in the United States. The freezing point of water is 32°F, and the boiling point is 212°F at standard atmospheric pressure.
  • Celsius (°C): Used worldwide in scientific and everyday applications. The freezing point of water is 0°C, and the boiling point is 100°C at standard atmospheric pressure.

 

Fahrenheit and Celsius Water

Conversion Formulas

Fahrenheit to Celsius

C = (F – 32) — 5/9

Example: Convert 98.6°F to Celsius

C = (98.6 – 32)— 5/9 = 37°C

Celsius to Fahrenheit

F = (C *— 9/5) + 32

Example: Convert 25°C to Fahrenheit

F = (25 *— 9/5) + 32 = 77°F

These formulas help in temperature conversions between the two scales for various applications like weather forecasting, cooking, and scientific research.

IPO Chart

The Input, Process, and Output table for the flowchart:

IPO Table
Input The temperature in Fahrenheit( F)
Process C = (F- 32) * 5 /9
Output The temperature in Celsius ( C )

Fahrenheit to Celsius Flowchart

Let’s design the flowchart using Flowgorithm flowchart software.

Launch Flowgorithm flowchart software.

Declare two Real variables. To declare the variables in the flowchart, we can use the Declare flowchart symbol.

Fahrenheit to Celsius Flowchart 1

Prompt the user to enter the Fahrenheit temperature. Store the input to the declared variable. This will initialize the variable ( F) with the user input. we can use the Input symbol to store the user input into a variable.

Calculate the Celsius temperature and store the value to the variable ( C).

Fahrenheit to Celsius Flowchart 2

Output the Celsius temperature. To output to the console window use the Output flowchart symbol.

ToFixed(r,d) is an intrinsic function to print only the d digits after the decimal point of the real number in the string format.

Fahrenheit to Celsius Flowchart 3

Save the flowchart.

Flowchart

 

Convert Fahrenheit to Celsius

Sample Output

Let’s run the flowchart and verify the flowchart output. The flowchart will prompt the user to enter the temperature in Fahrenheit.

Sample Testcase:

  • Input: 98.4 Fahrenheit
  • Output: 36.889 Celsius

Celsius Flowchart Output

 

Run the flowchart for the following inputs:

  • Freezing point of water : Input 32°F
  • Boiling point of water: Input 212°F

Check the Output of the flowchart.

That’s it. We have successfully designed a flowchart to convert the temperature from Fahrenheit degrees to Celsius temperature.

 

Flowgorithm Tutorials

Flowgorithm flowchart tutorials on this website: