Comp230

Submitted by: Submitted by

Views: 41

Words: 771

Pages: 4

Category: Other Topics

Date Submitted: 02/08/2015 05:34 PM

Report This Essay

VBScript IP Array Lab

Objectives

In this lab, students will complete the following objectives.

• Create a VBScript Program using NotePad++.

• Access a two-dimensional array.

• Use a Nested For Loop to display array contents.

• Use Do/While loops for error-handling.

• Use CStr( ), CInt( ), and chr( ) functions.

Lab Diagram

During your session you will have access to the following lab configuration.

Connecting to your lab

For this lab, we will only need to connect to Vlab-PC1.

• Vlab-PC1

To start simply click on the named Workstation from the device list (located on the left-hand side of the screen) and click Power on in the tools bar. In some cases the devices may power on automatically.

During the boot up process an activity indicator will be displayed in the name tab.

• Black—Powered Off

• Orange—Working on your request

• Green—Ready to access

If the remote console is not displayed automatically in the main window (or popup) click the Connect icon located in the tools bar to start your session.

If the remote console does not appear please try the following option.

• Switch between the HTML 5 and Java client versions in the tools bar.

In the event this does not resolve your connectivity problems please visit our Help/Support pages for additional resolution options.

Task 1: Open IP_Array_start.vbs

Note: All captures must be text only—DO NOT capture the NotePad++ application window or the command prompt window. Use copy and paste of text only.

Open NotePad++ and use File/Open to open IP_Array_start.vbs in the C:\comp230 directory. Modify the Programmer Header as needed. and Save As the file with the new name of IP_Array.vbs.

The line dim ipAddress(5,3) declares a 6x4 2-dimensional array. The 5 and 3 give the maximum index value. Because the index starts at 0, this is a 6x4 array.

The lines that follow initialize the array locations with IP addresses. The first index (0..5) represents the rooms 100 through 105. The...