Parallel Arrays using RAPTOR flowchart
Overview
Parallel arrays are the use of two or more arrays to store multiple data values for individual objects or entities. Parallel arrays allow us to keep track of multiple types of data for a given object.
Parallel Arrays
We use the index of the arrays to relate and identify the objects in the array. All the arrays should be of the same size. We can use the same loop to read and print the elements of the arrays.
For example, if we want to represent 5 points x, y coordinates in XY plane. We can use two parallel arrays of size 5.
x Array to store, x coordinate values.
y Array to store, y coordinate values
Sample Output
Points =
Point 1= [2,3]
Point 2= [3,4]
Point 3= [5,6]
Point 4= [7,8]
Point 5= [9,10]
Raptor Tutorials on this website can be found at:
https://www.testingdocs.com/raptor-a-flowchart-tool/
RAPTOR official website: https://raptor.martincarlisle.com/