TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

Flowgorithm

Flowgorithm Input Statement

Overview

In the Flowgorithm flowchart, each action that the computer can perform is represented by a different symbol. An Input statement symbol reads the information from the standard input device like the keyboard and stores the value into a flowchart variable.

Input Statement

By default, the input statement is represented with a blue color parallelogram. Before using the input statement, declare an input variable using the Declare symbol.

Flowgorithm Input Statement

 

Let’s declare a variable n

Steps to add the Input symbol to the flowchart:

  • To add a flowchart figure/symbol, move the mouse pointer over the control flowline. If a symbol can be added, the line turns orange.
  • Double-click or right-click to add a figure. A pop-up window will appear on the screen showing all the flowchart figures that can be added
    to the flowchart.
  • Move the mouse over the blue parallelogram with the wording “Input”. It will be highlighted with a blue rectangle. Click on the figure with the left mouse button and the figure will be inserted into the flowchart.

 

Input Gray Color Flowgorithm

 

Initially, the symbol will appear in gray color. The gray color indicates that the flowchart symbol is incomplete. This means that the variable should be specified in the symbol. The Input symbol stores the value in this variable.

Double click on the input symbol and specify the input variable to store the input value.

Specify the variable name in the ‘Enter a variable name below:’ textbox and click on the OK button.

 

Enter the input variable Input Statement

The symbol changes to blue color in the flowchart. The blue color of the input symbol indicates successful creation.

XML Syntax

The Flowgorithm flowchart is internally stored in the XML structure. We can edit the .fprg flowchart file using a text editor.

The Input flowchart symbol is represented as follows:

XMLFlowchart Input Symbol
<input variable=””/>

The XML input tag for the Input symbol when the variable is not yet assigned to the symbol in the flowchart.

flowgoithm_blank_input_symbol_xml
<input  variable=”sum”/>

The XML input tag for the input symbol when the variable is assigned to the Input symbol in the flowchart. The variable name is the sum. The input is read from the keyboard and stored in the variable sum.

flowgorithm_input_xml_symbol

Exercise

Declare a variable called the name of datatype String. Prompt the user to enter the name. Store the user input in the variable using an Input symbol.
Print the name to the output screen.

 

Input Symbol Exercise Flowchart Output

—

Flowgorithm Tutorials

Flowgorithm flowchart tutorials on this website:

https://www.testingdocs.com/flowgorithm-flowchart-tutorial/

Flowgorithm Website

For more information on the Flowgorithm tool, please visit the official website at:

http://flowgorithm.org/

Related Posts

Print Triangle Pattern Flowchart

Flowgorithm /

Print Triangle Pattern Flowchart

Flowgorithm Breakpoint Symbol

Flowgorithm /

Flowgorithm Conditional Breakpoint Statement

File Read Declare Variables

Flowgorithm /

Flowgorithm Read Numbers from File Example

File Search Input File Flowgorithm

Flowgorithm /

Search Text File Flowchart Example

Flowgorithm Turtle Graphics Symbols

Flowgorithm /

Flowgorithm Turtle Graphics Symbols

‹ Flowgorithm Comment Statement› Flowgorithm Output Statement

Recent Posts

  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Print Triangle Pattern Flowchart
  • RAPTOR Editions
  • Flowgorithm Conditional Breakpoint Statement
  • Flowgorithm Read Numbers from File Example
  • Search Text File Flowchart Example
  • Flowgorithm Turtle Graphics Symbols
  • Draw Circle using Flowgorithm Turtle

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com

Go to mobile version