Stdinreadline room cintroomstr if room 100 or room

Info icon This preview shows pages 1–3. Sign up to view the full content.

roomStr = Wscript.StdIn.Readline() room = CInt(roomStr) If room < 100 OR room > 105 Then 1
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

In the space provided below to copy and paste the remainder of your VBScript sourcecode. COMP230_W4_IP_Array_Report.docx Revision Date: 1204 WScript.StdOut.WriteLine(chr(7) & chr(7) & "Error, 100 to 105 Only!!!") WScript.echo 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.WriteLine(chr(7) & chr(7) & "Error, 1 to 4 Only!!!") WScript.echo End If Loop While computer < 1 OR computer > 4 Wscript.StdOut.WriteLine(vbCrLf & "The IP Address in Room " & room & " for computer " & computer & " is " & ipAddress(room-100,computer-1)) WScript.Echo ' Display All IP addresses Y/N? Do WScript.StdOut.Write("Do you wish to Display all of the IP Addresses (Y/N) .... ") ans = WScript.StdIn.Readline() If ans <> "Y" and ans <> "y" and ans <> "N" and ans <> "n" Then WScript.StdOut.WriteLine(chr(7) & chr(7) & "Error, Y,y,N,n response Only!!!" & WScript.Echo) End If Loop While ans <> "Y" and ans <> "y" and ans <> "N" and ans <> "n" If ans = "Y" OR ans = "y" then WScript.Echo for room = 0 to 5 for computer = 0 to 3 WScript.StdOut.WriteLine (vbCrLf & "The IP Address in Room " & room+100 & " for Computer " & computer+1 & " is " & ipAddress(room,computer)) Next Next End If 2
Image of page 2
In the space provided below, copy and paste the RUN of your VBScript program: COMP230_W4_IP_Array_Report.docx Revision Date: 1204 3
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.
  • Fall '13
  • IP address

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern