Friday, October 30, 2020

VBscript Assignment Help

 VBscript Assignment Help

I'm new to vb scripting, and in reality I'm new in scripting in general. I have a lab for the school I have been struggling for the last few days and there's not much time. Can one help please? Get VBscript assignment help online now from our experts.


First Step for VBscript assignment help 


Task 1: Open IP_Array_start.vbs in NotePad++


· Download the IP_Array_start.zip file from Doc Sharing in eCollege. Unpack lêerIP_Array_start the vbs and open it in NotePad++.


· Change the program header if necessary and click Save Off to save the file with IP_Array name and.vbs.


· The dim line of ipAddress (5.3) confirmed a two-dimensional array of 6x4. The 5 and 3 give the index value the maximum. Because indexes always start at 0, this is a 6x4 series.


First the lines of the array sites continue with IP addresses. The first index (0.5) shows the rooms 100 to 105. The second index (0.3) represents the four computers in each room.


The IP address of the third computer in room 104 can be found in the ipAddress array or component (4,2). This value is "192.168.10.45." Carefully look at the array to find out the meaning of index values.


· Now that you have an initial two-dimensional array, your task is to investigate the array to the IP address of any computer (1-4) in any room (100-105).



Second Step for VBscript homework help 


Task 2: Validation input and keyword range for


IP Addresses


Task 2: Validation input and keyword range for


IP Addresses


1) We start by defining our app variables. We need two sets of variables: wire variables: Stretch cream and compStr; and number variables: room and computer. String variables are required to import and the number variables are used as indexes for the ip address array.


'Define script variables


creamstr =""


compStr =""


Room = 0


computer = 0


RoomStr and compStr store the values entered by the user. (Remember that the reading line is considered to be the import wire). They are then converted to numerical values that imply consecutively and a column using a cint stored in room and pc variables.


2) We must first ask the user to enter the room number (100–105). We need to make sure that the user does not value less than 100 or more than 105. Enter loops to validate data. For example, if I need to enter a number of more than 0 for some program and want to make sure the import is positive, I can do it with loop Who. The general pseudocode will be as follows.


Read number


While < number= 0 (invalid data negative number)


Print troubledly, ask the user to re-entry


Read number


End during


We will use a Step loop to validate the value of the room. View the pseudocode shown


below and write the required VBScript declaration applying the pseudocode


To-do. Vbscript code will be correct as it is written boldly.


Demo message "Enter room number (100-105)"


Get StdIn Console Input and assign wire value to creamStr


Room = CInt (CreamStr)


Who <100 ROOM OR room> 105


Use StdOut to peak speaker twice with a cra (7)


Show ErrMsg "Error, only 100 to 105 !!!"


Demo message "Enter room number (100-105)"


Get StdIn Console Input and assign wire value to creamStr


Room = CInt (CreamStr)


End during


To date there have been:


'Define script variables


roomStr=""

compStr=""

room=0

computer=0

' Promt User to Enter a Room Number

WScript.StdOut.Write ("Please Enter the Room Number (100-105)...")

room = WScript.StdIn.ReadLine()

room = CInt(roomStr)

While room < 100 OR room > 105

WScript.StdOut chr(7)

WScript.StdOut chr(7)

MsgBox "ErrMsg"

WScript.Echo "Error, 100 to 105 ONLY!!!"

WScript.StdOut.Write ("Enter the Room Number (100-105)....")

WScript.StdIn.ReadLine()

room = CInt(roomStr)

Wend


No comments:

Post a Comment