Algorithm to Convert temperature Fahrenheit to Celsius
Algorithm to Convert temperature Fahrenheit to Celsius
In this tutorial, we will design an algorithm to convert temperature from Fahrenheit to Celsius and analyze the program’s inputs and outputs.
To convert a temperature from Fahrenheit to Celsius, use the following formula:
Celsius = (Fahrenheit – 32)*5/9
Example
Algorithm
The algorithm to convert temperature Fahrenheit to Celsius is as follows:
Input: Temperature in Fahrenheit
Output: Temperature in Celsius
Step 1: Start
Step 2: Read the temperature in Fahrenheit F
Step 3: Convert the temperature to Celsius C <- (F – 32)*5/9
Step 4: Print the temperature in Celsius C
Step 5: End
Gaddis Pseudocode
Steps to generate pseudocode using Flowgorithm software:
// Flowchart to Convert Temperature Fahrenheit to Celsius
// www.TestingDocs.com
Declare Real fahrenheit
Declare Real celsius
Display "Enter Temperature in Fahrenheit = "
Input fahrenheit
Set celsius = (fahrenheit - 32) * 5 / 9
Display "Temperature in Celsius = ", celsius
Screenshot
The screenshot of the Pseudocode in the Flowgorithm source code viewer is as follows:
On the other hand, the formula to convert  Celsius to Fahrenheit is as follows:
Flowgorithm Tutorials
Flowgorithm flowchart tutorials on this website:
More information on flowgorithm software, visit the official website: