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

Flowgorithm

Getting User Input in Flowgorithm Flowchart

Flowgorithm

Overview

In this tutorial, we will learn the steps involved in getting user input in the Flowgorithm flowchart. We have discussed assigning a value to the variable using the Assign shape.

( https://www.testingdocs.com/create-variables-in-flowgorithm-flowchart/)

The general steps to take user input in the flowchart are as follows:

  • Declare a variable to hold the user input data.
  • Prompt the user with a user-friendly message.
  • Save the user input to the variable.

Example

To get a better understanding, we will design a flowchart to greet the user. The flowchart prompts the user to enter his/her name. The flowchart saves the user name and then greets the user.

Launch the Flowgorithm application. Declare a variable to hold the user name. Let’s name the variable as UserName. The data type of the variable should be String.

Output Symbol

An Output shape is used to display data on the computer screen. We can use expressions and variables in the Output shape.

Add an Output shape to the flowchart. This is to prompt the user to enter the name. Left click on the flowchart arrow line and choose the Output shape.

 

User prompt Flowgorithm

 

Double click on the Output shape. Enter the user prompt message and click on the OK button.

Input Symbol

An Input shape reads the input from the keyboard and stores the data in the specified variable. Add an Input shape to store the user input and assign it to the variable declared in the first step. Double click on the Input shape and enter the variable name. Click on the OK button.

 

Input Shape Flowgorithm

 

Add another Output shape to display the greeting to the user. Let’s personalize the greeting and add the name of the user. Double click on the Output shape and enter the expression in the Expression box.

“Hello , ” & UserName

Concatenation operator

& is the concatenation operator in Flowgorithm. The concatenation operator joins the strings and combines it as one String. For example, if the UserName variable holds “John” then the expression would be:

“Hello , ” & UserName   -> “Hello , John”

Run the Flowchart

Click on the green play button in the Toolbar to run the flowchart.

 

Flowgorithm Flowchart Output

 

  1. Green button to run the flowchart.
  2. The user prompt is displayed by the flowchart.
  3. User Input to the flowchart. (John)
  4. Flowchart output. ( Hello , John )

—

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 Integer Array› Flowgorithm Array Types

Recent Posts

  • Update draw.io on Windows
  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Build & Run CLion Project
  • Create New CLion C Project on Windows
  • Configure CLion Toolchains on Windows
  • Launch CLion IDE on Windows
  • Activate CLion IDE
  • CLion IDE for C/C++ Development

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com