Preview

Comp230 Wk 4 Vbscript Ip Array

Powerful Essays
Open Document
Open Document
529 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Comp230 Wk 4 Vbscript Ip Array
Student Name | | Class | Comp230 | Date | | VBScript IP Array Report 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
' VBScript: IP_Array.vbs
' Written by:
' Date: Ju
' Class:
' Professor:
' ===================================
' 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.
' Define Script Variables 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" roomStr="" compStr="" room=0 computer=0 ansStr="" Do WScript.StdOut.Write("Please Enter the Room Number (100-105)...... ") roomStr = WScript.StdIn.ReadLine room = CInt(roomStr) If room < 100 OR room > 105 Then WScript.StdOut chr(7) & chr(7) WScript.StdOut.WriteLine( "Error, 100 to 105 Only!!!") End If Loop While room < 100 OR room > 105
Do
WScript.StdOut.Write("Please Enter the Computer Number (1-4)...... ") compStr = WScript.StdIn.ReadLine computer = CInt(compStr) If computer < 1 OR computer > 4 Then WScript.StdOut chr(7) & chr(7)

You May Also Find These Documents Helpful

  • Good Essays

    Listed below is an example of one with the name within it. Left click the box with code inside. Once clicked a bold black box will outline the rectangle of G2 and at the bottom right of the G2 box there will be a small square. Left click and drag down this square until it reaches the last row with data in it. Once the code is dragged down it will be placed into each row in column G of the bolded dragged down area.…

    • 414 Words
    • 2 Pages
    Good Essays
  • Good Essays

    QUESTION SET 1 EIMACS FRQ

    • 564 Words
    • 9 Pages

    //Part a (note, only certain parts will be needed for submit, don't just copypasta like crazy…

    • 564 Words
    • 9 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
  • Satisfactory Essays

    Nt1310 Unit 7

    • 458 Words
    • 2 Pages

    Identify the three IP address classes, the default subnet mask used with each, and the number of hosts for each.…

    • 458 Words
    • 2 Pages
    Satisfactory Essays
  • 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
  • Powerful Essays

    Comp230-Intro to Scripting

    • 12553 Words
    • 51 Pages

    Which one of the following Windows AT commands specifies an action that will take place at 3:00 p.m.?…

    • 12553 Words
    • 51 Pages
    Powerful Essays
  • Satisfactory Essays

    Ip Assignment 1

    • 322 Words
    • 2 Pages

    2. Lowest The more fat a person has, the less water present. Female facing forward 40%…

    • 322 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Unit 42 M3

    • 430 Words
    • 2 Pages

    As we did this task already you can explain how you recorded the macro and how it can be useful for the user, such as repetition of tasks, saving time etc.…

    • 430 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    The network IP addressing scheme for the Frederick MD building should be designed to ease network management. A well thought out network subnet design enables administrators to quickly locate computers by IP address by building floor and room, and whether the computer is a server, a student computer, staff computer or instructor’s computer. A proper subnet design will also minimize broadcast traffic that decreases network performance, by reducing the total number of computers allowed in each broadcast domain. A proper subnet design will also provide for efficient use of IP addresses by including only the number of IP addresses in each subnet necessary to support current computers plus a few additional IP addresses for immediate expansion when required. To differentiate subnets by IP address, student subnets start with a “1” in the third octet, staff subnets start with a “2” in the third octet where “10” in the second and third digits designates the location to be floor 1, “12” designates the location to be floors 1 and 2, “10” designates the location to be floor 1, “20” designates the location to be floor 2, and a second digit of “4” designates office staff and a second digit of “5” designates Admissions staff. The broadcast and network numbers have been removed from the IP address ranges below.…

    • 1166 Words
    • 3 Pages
    Better Essays
  • Good Essays

    Week 5

    • 585 Words
    • 3 Pages

    Chapter readings: 2 (p.), 9 (p.), and 10 (p.) of Programming in Visual Basic 2010.…

    • 585 Words
    • 3 Pages
    Good Essays
  • Good Essays

    5. Run the program again by pressing the <F6> function key, but this time type wscript EchoDemo.vbsand…

    • 2429 Words
    • 10 Pages
    Good Essays
  • Powerful Essays

    1. Use the Microsoft help feature to find help on the key words “macro”, click on the hyperlink “macro security levels” and display it, copy the second paragraph “Security Because macros…. publishers”, and paste it on a new blank document. Save the document as a type web page as C:\BICDL…\Macro.doc.…

    • 829 Words
    • 4 Pages
    Powerful Essays
  • Better Essays

    References: for Software Development using Microsoft Office Products 3) Solomon, Christine, "Microsoft Office 97 Developer 's Handbook", Microsoft Press, Redmond,Washington,1997 4) Microsoft Corp.,"Microsoft Office 97 Visual Basic Programmer 's Guide"; Microsoft Press, Redmond,Washington, 1997 5) O 'Brien,T.M. & Pogge,S.J. & White,G.E.,"Microsoft Access 97 Developers Handbook", Microsoft Press, Redmond,Washington, 1997 6) Smith,Robert & Sussman,David,"Beginning Access 97 VBA Programming",Wrox Press Ltd.,Birmingham,UK,1997 7) "Visual Basic Programmer 's Guide, Version 5.0",Document No. DD93011-1296, Microsoft Corp., Redmond,Washington, 1997 8) Craig,J.C. & Webb,J.,"Miscosoft Visual Basic 5.0 Developer 's Workshop", Fourth Edition, Microsoft Press, Redmond,Washington,1997 9) Mann, Anthony,"Visual Basic 5.0 Developer 's Guide",Sams Publishing,Indianapolis,1997 10) Haught,D. & Ferguson,J.,"Microsoft Jet Database Engine Programmer 's Guide",Second Edition,Microsoft Press,Redmond,Washington,1997 Nuclear & Engineering Standards Summary (Partial List) 11) ANSI/IEEE-ANS-7-4.3.2, Application Criteria for Programmable Digital Computer Systems in Safety Systems of Nuclear Power Plants 12) ANSI/ANS-10.2,Recommended Programming Practices to Facilitate the Portability of Scientific and Engineering Computer Programs 13) ANSI/ANS-10.3,Guidleines for the Documentation of Digital Computer Programs 14) ANSI/ANS-10.4,Guidelines for the Verification & Validation of Scientific and Engineering Programs for the Nuclear Industry 15) ANSI/ANS-10.5,Guidelines for Considering User Needs in Computer Program Development 16) ANSI/ASME NQA-1,Quality Assurance Program Requirements for Nuclear Facilities 17) ANSI/ASME NQA-2 Part2.7,Quality Assurance Requirements of Computer Software for Nuclear Facility Applications 18) IEEE STD 1033,IEE Recommended Practice for Application of IEEE STD 828 to Nuclear Power Generating Stations 19) NUREG/CR-4640,Handbook of Software Quality Assurance Techniques Applicable to the Nuclear Industry 20) Regulatory Guide 1.152,Criteria for Programmable Digital Computer System Software in Safety-Related Systems of Nuclear Power Plants. 21) ANSI/IEEE Std 729,Glossary of Software Engineering Terminology 22) ANSI/IEEE Std 730, Software Quality Assurance Plans 23) ANSI/IEEE Std 828,Software Configuration Management 24) ANSI/IEEE Std 829,Software Test Documentation 25) ANSI/IEEE Std 830,Software Requirements Specifications 26) ANSI/IEEE Std 1008,Software Unit Testing 27) ANSI/IEEE Std 1012,Software Verification And Validation Plans 28) ANSI/IEEE Std 1016,Software Design Description…

    • 3465 Words
    • 14 Pages
    Better Essays
  • Powerful Essays

    Lesson Plan Visual Basic

    • 1009 Words
    • 5 Pages

    1. Extend the nested if-then-else conditional statement in making simple animation using Visual Basic 6.0…

    • 1009 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    In our project we intend to apply the use of window service and create a window form using Visual Basic.net and Visual Studio 2010. The project will include the following features:…

    • 356 Words
    • 2 Pages
    Satisfactory Essays