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

Raptor Flowchart

Array in Raptor Flowchart

Raptor Flowcharts

Introduction

An array is a data structure. It is a collection of elements of the same data type. Array elements are stored in contiguous memory locations. Individual array elements in an array can be accessed by the index. All objects that are stored in the array must be of the same data type.

For Example, if the array is a number array then all the objects in the array must be numbers. An object in the array is associated with an integer index which can be used to locate the object. The first object of the array has index 1. Unlike in most programming languages like C, and Java where the array index starts with 0, in the Raptor flowchart, the index of an array starts at 1.

Array Example

A single-dimensional array of size 5 that holds fruit names.

 

Array Example Raptor

Chess Board

The chess board is an example of a 2D ( Two dimensional ) array of chess pieces.

Chess Board TDocs

Sample Flowchart

Let’s use a single-dimensional array to calculate the sum of rainfalls in a city using the Raptor flowchart. We use rainfall as an array variable to hold the rainfalls of the city.

Array in Raptor Flowchart

Individual array elements in the array can be accessed using rainfall[index],

the index is an integer and starts with 1

We can also store variables in the array using the index. For example, to store 12 cm of rainfall for the 3rd month, we can use

rainfall[3] <- 12

 

Raptor flowchart Rainfall arrayy

The output of the flowchart

Raptor Output

 

Reading values into an array

https://www.testingdocs.com/questions/how-to-read-values-into-an-array-using-raptor-flowchart/

—

RAPTOR Tutorials

Raptor Tutorials on this website can be found at:

https://www.testingdocs.com/raptor-a-flowchart-tool/

RAPTOR official website:

https://raptor.martincarlisle.com/

Related Posts

Install RAPTOR Avalonia CentOS

Raptor Flowchart /

Install RAPTOR Avalonia on CentOS

RAPTOR Avalonia Edition Windows

Raptor Flowchart /

Download RAPTOR Avalonia Edition on Windows

RAPTOR Editions

Raptor Flowchart /

RAPTOR Editions

RAPTOR flowcart to write to a file output

Raptor Flowchart /

Write to a file with RAPTOR flowchart

Sum of Squares Array Elements Modular Approach

Raptor Flowchart /

Sum of Squares of Given Array Elements

‹ Hello World RAPTOR Flowchart› RAPTOR flowchart useful tips

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