In this tutorial, we will design a Flowgorithm flowchart to convert feet to meters. The flowchart prompts the user to enter the feet to be converted into meters.
Convert Feet to Meters
Based on the mathematical conversion formula:
Meters = Feet/3.2808
Basic flowchart operations are listed in this tutorial:
We need to variables in the flowchart. One variable to hold the user input and the feet that needs to converted into meters. Another variable to hold the mathematical calculation output of the flowchart i.e meters. Both the variables are of Real data types.
Declare the variables in the flowchart. Right-click and add the Declare symbol.
Double click on the Declare symbol and provide the variable name.
Add two declare variables for Feet and Meters. Choose the data type as Real. Click on the OK button.
Add an Output symbol and Prompt the user to enter the feet.
Add an Input symbol and take the user input into the Feet variable.
Add an Assignment Symbol to the flowchart. Perform the calculation as per the formula in an Assignment flowchart symbol. Assign the value to the variable Meters
Add an Output symbol to display the Meters.
Test the Flowchart
Run the flowchart and execute some test cases to verify the flowchart and make sure that the flowchart is working as intended.
Sample output of the flowchart:
Flowgorithm Tutorials Link: