Arrays and Modules
A Raptor Example

Arrays and Modules

This exercise will be used to demonstrate an array for numeric data, string data, modules with values that are global and modules with values that are local.

 

Program 1

Numbers in an array

Program Name: NumsArray_01.rap

1) Load in 10 numbers using the keyboard

2) Show the numbers only in the watch window

 

 

Program 2

Using modules load the numbers into and array then show numbers in the command using another module.

Program Name: NumsArray_02.rap

1) Using a module Load in 10 numbers using a data file

2)Using a module   Show all numbers in the command window.

3) Using another module find and show the lowest number

 

Program 3

String data in an array

Program Name: StringArray_01.rap

1) Load in 10 names from a data file

2) Show the names in the watch window

 

Video Under Construction

 

Program 4

Using modules load the names into and array then show names in the command window using another module.

Program Name: StringArray_02.rap

1) Using a module Load in up to 10 names from a data file.

2) Using a module Show all names in the command window.

3) Using another module find and show the name that would be last alphabetically.

 

Video Under Construction