top of page
Writer's pictureCodeAvail

VBscript Assignment Help

VBscript Assignment Help

I'm new to the vb scriptures, and I'm actually new to the scriptures in general. I have a school lab that I've been fighting for the last few days and not so long ago. Can someone help you please? Get online help with vbscript assignment from our experts.



Task 1: IP_Array_start.vbs in Notepad ++


· Download the IP_Array_start.zip file from Doc Sharing to eCollege. Unzip lêerIP_Array_start vbs and open it on notepad++.


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


· The dark line of ipAddress (5.3) confirmed a two-dimensional array of 6x4. The maximum value of the index shall be provided in Article 5 and 3. Since the clues always start from 0, this is a 6x4 series.


First, the array site rows continue with IP addresses. The first index (0.5) shows the cameras from 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 matrix or component (4.2). This value is "192.168.10.45". Look closely at the array to find out the meaning of index values.


· Now that you have an initial two-dimensional array, your task will be able to use the <a0>Windows%%amp;#160;</a0> is to investigate the matrix for the IP address of any computer (1-4) in any room (100-105).





Second Step for VBscript homework help


Task 2: Validation of the input and keyword range for


IP Addresses


Task 2: Validation of input and keyword range for


IP Addresses


1) We start by defining the variables of our application. We need two sets of variables: thread variables: Stretch cream and compStr; and numeric variables: camera and computer. String variables are required for import, and number variables are used as indices for the IP address matrix.


"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 the import thread.) They are then converted to numeric values that involve consecutive and a column using a cint stored in the camera and PC variables.


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


Read the number


While <number = 0 (negative number of invalid data)


Print with problems, ask the user to re-enter


Read the number


End during


We'll use a Step loop to validate the camera value. See the pseudocode displayed


below and write the required vbscript declaration by applying the pseudocode


Do. The Vbscript code will be correct because it is written in bold.


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


Get the stdin console input and assign the thread value to creamStr


Room = CInt (CreamStr)


Who <100 CAMBERS OR Room> 105


Use StdOut to enlarge the speaker twice by a cra (7)


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


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


Get the stdin console input and assign the thread value to creamStr


Room = CInt (CreamStr)


End during


So far, 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


3 views0 comments

Recent Posts

See All

How is Python useful in real life?

Python is currently the most popular programming language in the world, and its user base is constantly growing. But what is Python used...

Comments


bottom of page