Preview

VBScript Program Code: Lab

Powerful Essays
Open Document
Open Document
642 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
VBScript Program Code: Lab
Student Name Class Date
VBScript IP Array Lab Key

In the space provided below, copy and paste your VBScript Program Code. If it doesn’t fit, use the next page for the continuation of your sourcecode program In the space provided below to copy and paste the remainder of your VBScript sourcecode.

' VBScript: IP_Array_start.vbs
' Written by: Student Name
' Date: Today's Date
' Class: COMP230
' Professor: Professor Name
' ===================================
' This initialize a 2-dimension array
' of IP Address. The first index +100
' is the room# and the second index+1
' is the computer# in the room. dim ipAddress(5,3) ipAddress(0,0)="192.168.10.11" ipAddress(0,1)="192.168.10.12" ipAddress(0,2)="192.168.10.13" ipAddress(0,3)="192.168.10.14" ipAddress(1,0)="192.168.10.19" ipAddress(1,1)="192.168.10.20" ipAddress(1,2)="192.168.10.21" ipAddress(1,3)="192.168.10.22" ipAddress(2,0)="192.168.10.27" ipAddress(2,1)="192.168.10.28" ipAddress(2,2)="192.168.10.29" ipAddress(2,3)="192.168.10.30" ipAddress(3,0)="192.168.10.35" ipAddress(3,1)="192.168.10.36" ipAddress(3,2)="192.168.10.37" ipAddress(3,3)="192.168.10.38" ipAddress(4,0)="192.168.10.43" ipAddress(4,1)="192.168.10.44" ipAddress(4,2)="192.168.10.45" ipAddress(4,3)="192.168.10.46" ipAddress(5,0)="192.168.10.51" ipAddress(5,1)="192.168.10.52" ipAddress(5,2)="192.168.10.53" ipAddress(5,3)="192.168.10.54"

End If ' Query the IP Address in a given room
Do
WScript.StdOut.Write("Please Enter the Room Number (100-105) ..... ") roomStr = WScript.StdIn.ReadLine() If CInt(roomStr)105 Then WScript.StdOut.WriteLine(chr(7) & chr(7) & "Error, 100 to 105 Only!!!") Else room = Cint(roomStr)-100 End If
Loop While CInt(roomStr)105
Do
WScript.StdOut.Write("Please Enter the Computer Number (1-4) ..... ") compStr = WScript.StdIn.ReadLine() If CInt(compStr)4 Then WScript.StdOut.WriteLine(chr(7) &

You May Also Find These Documents Helpful

  • Satisfactory Essays

    In the space provided below, copy and paste your IP_FileWrite.vbs program sourcecode. If it doesn’t fit, use the next page for the continuation of your program sourcecode.…

    • 1328 Words
    • 6 Pages
    Satisfactory Essays
  • Satisfactory Essays

    cloud

    • 2069 Words
    • 9 Pages

    Open the Windows CLI Using the Desktop or Quick Launch Command Prompt icon. Change Directory to the C:\Scripts\ folder (cd \Scripts). Verify that the files PC_Tests.cmd and PC_Tests.vbs exists in this directory. If the files are absent, they can be extracted from the downloaded Doc Sharing file PC_Tests.zip.…

    • 2069 Words
    • 9 Pages
    Satisfactory Essays
  • Satisfactory Essays

    ME2400 ICD9CM wk02 assign

    • 391 Words
    • 2 Pages

    Follow cross-reference instructions if the needed code is not located under the first main entry consulted.…

    • 391 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Comp230 W2 Ilab

    • 1120 Words
    • 5 Pages

    Student Name | | Class | Comp230 | Date | 5/16/2013 | VBScript IPO VBox Lab Report ' VBScript: NameAge.vbs ' Written by: ' Date: 5/16/2013 ' Class: Comp230 ' Professor: Giao Dau ' = == == == ==…

    • 1120 Words
    • 5 Pages
    Satisfactory Essays
  • Good Essays

    Follow cross-reference instructions if the needed code is not located under the first main entry consulted.…

    • 441 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Week 1 Lab_ CIS_115

    • 439 Words
    • 2 Pages

    Describe your solution using pseudocode. Use the same valid variable names you selected in Step 1.…

    • 439 Words
    • 2 Pages
    Good Essays
  • Good Essays

    B062 Ict Crswrk

    • 1037 Words
    • 5 Pages

    After this I re-saved the document as a macro enabled file so that the macro would work later on as well:…

    • 1037 Words
    • 5 Pages
    Good Essays
  • Powerful Essays

    In the space provided below, copy and paste your VBScript Program Code. If it doesn’t fit, use the next page for the continuation of your sourcecode program…

    • 529 Words
    • 3 Pages
    Powerful Essays
  • Satisfactory Essays

    NT1110Lab3Worksheet

    • 799 Words
    • 6 Pages

    2. Using the Internet, locate information on the AMD 770 Northbridge Chipset. What processors is it used with? What is its purpose on the motherboard?…

    • 799 Words
    • 6 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Switch/Router Security Lab Exam Subnet the IP Address 192.168.3.5 to provide 12 networks with 12 hosts. a. Subnet Mask: 255.255.255.224 b. CIDR value: /27 c. What is the first usable IP on the 6th usable network: 192.168.16.193: ERROR d. What is the last usable IP on the 7th usable network: 192.168.16.225:…

    • 246 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    Nt1330 Unit 7 Lab 1

    • 566 Words
    • 3 Pages

    Then copy all of this information and paste it to a new text document and save it to your desktop.…

    • 566 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Nt1310 Unit 3 Assignment

    • 256 Words
    • 2 Pages

    Write a program to read the name of 5 students through keyboard and store them in a file “name.txt”.…

    • 256 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    W8 Comp

    • 898 Words
    • 4 Pages

    3) What VBScript Boolean operator could be used to replace the nested selection structure in this pseudocode? if empMedicalIns = "Y" then if empDentalIns = "Y" then print empIdNumber, empLastName, empFirstName endif endif (Points : 5) XOR AND OR NOT…

    • 898 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Instructions: Copy and paste the following text into a document or create a document that contains the same information.…

    • 1221 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Chatmates

    • 470 Words
    • 2 Pages

    If you wish to perform a set of instructions in more than one location, you don’t have to duplicate the code. Write the instructions once, in an event procedure, and “call” the procedure from another procedure. When you call an event procedure, the entire procedure is executed and then execution returns to the statement following the call.…

    • 470 Words
    • 2 Pages
    Good Essays

Related Topics