Flowchart to Convert Inches to Centimeters
Flowchart to Convert Inches to Centimeters
In this tutorial, we will design a flowchart to convert Inches to Centimeters using Flowgorithm software. The user enters the distance in inches. The flowchart converts the value to centimeters.
Formula
Use the following mathematical formula to convert the distance:
centimeters= inches * FACTOR
where
Conversion Factor is = 2.54
Centimeters=Inches×2.54
IPO chart
Input: distance in inches
Process:
Use the following mathematical formula to convert the distance:
centimeters= 2.54 * inches
Output: distance in centimeters
Pseudocode
Pseudocode is a simplified, informal way of describing the steps in an algorithm using plain English and basic programming constructs. It helps in planning and communicating logic without focusing on specific programming language syntax. The pseudocode is as follows:
// Convert Inches to Centimeters Flowchart
// www.TestingDocs.com
Declare Real inches
Declare Real centimeters
Display “Enter Inches to convert = ”
Input inches
Set centimeters = 2.54 * inches
Display “Centimeters equivalent to “, inches, ” inches = “, centimeters
Flowgorithm Flowchart
Launch the flowgorithm software tool.
Declare the variable to hold the inches and centimeters.
Prompt the user to enter inches.
Calculate and assign the value to centimeters variable.
Output the centimeters variable.
Flowchart
Sample Output
Test the flowchart output with some test cases.
Click on the green play button to run the flowchart.
Enter the distance in inches that needs to be converted into centimeters.
View the flowchart output.
That’s it.