Can someone look at this script and please tell me what is wrong with it?
Can someone look at this script and please tell me what is wrong with it? I am failing this class because I’m just
not understanding VB and WScripting. ATTACHMENT PREVIEW Download attachment‘ Written by: Todd Genopolos’ Date: 5/29/16′ Class: COMP230′ Professor: Rickey Spiece’ =======================================================’ Below is an initialized 2-dimension’ array of IP Addresses. The 1st index’ +100 is the room# and the 2nd 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″‘ Define Script VariablesroomStr=””compStr=””room=0computer=0WScript.Echo.Write(“Please Enter the Room Number (100-105) ……”)roomStr=WScript.StdIn.Readline()While room < 100 or room > 105WScript.StdOut.WriteLine(chr(7) & chr(7) & “Error, 100 to 105 only!!!”)WScript.StndOut.Write(“Please Enter the Room Number (100-105) ……”)roomStr=WScript.StdIn.Readline()room = CInt(roomStr)WEnd
