Preview

COMP230 Week 4

Satisfactory Essays
Open Document
Open Document
458 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
COMP230 Week 4
' ===================================
' 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. 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 Variable roomStr="" compStr="" room=0 computer=0

Do roomStr=InputBox("Please Enter the Room Number (100-105)....") room = CInt(roomStr)
If room < 100 Or room > 105 Then
WScript.Echo Chr(7) & Chr(7)
MsgBox("Error, 100 to 105 Only!!!")
End If
Loop While room < 100 Or room > 105

Do compStr=InputBox("Please Enter the Computer Number (1-4)....") computer = CInt(compStr)
If computer < 1 Or computer > 4 Then
WScript.Echo Chr(7) & Chr(7)
MsgBox("Error, 1 to 4 Only!!!")
End If
Loop While computer < 1 Or computer > 4

WScript.Echo "The IP Address in Room " & room & " for computer " & computer & " is " & ipAddress(room-100,computer-1)

'Display All IP Address Y/N?
Do
ans=InputBox("Do you wish to Display all of the IP Address (Y/N)....")
If ans "Y" And ans "y" And ans "N" And ans "n" Then
WScript.Echo Chr(7) & Chr(7)
MsgBox("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

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Netw310 Week #4

    • 313 Words
    • 2 Pages

    Yes we can, we must follow all the rules prior to being allowed to make the trench, which is getting all the required permits.…

    • 313 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Nt1320 Unit 4

    • 540 Words
    • 3 Pages

    But form factor = (r.m.s value)/(average value) =1.11, Then r.m.s value of E.m.f = 1.11*4F*max.Flux = 4.44F*max.Flux, But max .flux = B_m*A…

    • 540 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Nt1310 Unit 8 Lab 1

    • 421 Words
    • 2 Pages

    1. Public Keys and Public Certificates can be stored in the Central Repository. It is not the same as the Public Key Infrastructure, but it is not the same.…

    • 421 Words
    • 2 Pages
    Satisfactory Essays
  • Best Essays

    Cmgt 430 Week 2

    • 1585 Words
    • 7 Pages

    University of Phoenix (2005). Huffman Trucking Service Request SR-ht-001. Materials section. Retrieved February 08, 2011, from https://ecampus.phoenix.edu/secure/aapd/cist/…

    • 1585 Words
    • 7 Pages
    Best 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
  • Satisfactory Essays

    Sample Final Amd2303

    • 783 Words
    • 4 Pages

    CREA Canadian Real Estate Association. CREA puts the average price at which a house was sold in Canada in 2010 at $339,100. Let us assume that the standard deviation of the house prices was $134,216. Suppose you had done a survey of a random selection of 36 house sale prices in 2010 and obtained an average house price of $368,533…

    • 783 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    It 210 Checkpoint

    • 374 Words
    • 2 Pages

    In one of the week 3 discussion questions we discussed the algorithm that would be required to make a peanut butter sandwich. In this CheckPoint you will need to take that one step further and create a program design to make a peanut butter sandwiches. Below you will find a partial program design; you need to complete it by adding the pseudocode in the required areas. You need to add one repetition (loop) control structure and one decision control to complete the program design. The user will decide how many sandwiches are made; this is where the loop will be used. The user will decide if the sandwich includes jelly, and, if it does, what flavor of jelly; to keep it simple we are only allowing grape or strawberry jelly.…

    • 374 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Comp230 Week 5

    • 1799 Words
    • 8 Pages

    ExecQuery _ ("Select * from Win32_ComputerSystem") For Each objComputer in colComputer intRamMB = int((objComputer. TotalPhysicalMemory) /1048576)+1 Wscript. Echo "System Name ...... " & objComputer.…

    • 1799 Words
    • 8 Pages
    Satisfactory Essays
  • Good Essays

    Hcr220 Week 7 Checkpoint

    • 314 Words
    • 2 Pages

    Write a 250- to 300-word response to the following: Briefly explain causes and solutions for three of the most common billing and coding errors. What effect does the Medicare National Correct Coding Initiative have on the billing and coding process? Explain your answers.…

    • 314 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    I think business today is learning to use the new communication technologies, while some find a fair level of success, others still struggle to find the benefits. If a company is under the influence of one who has not embraced the current trends, then that type of thinking may be descended down through the ranks. Other factors may include the capital needed to fund the investment necessary to keep up with updating equipment and training. Some types of business may require frequent updates to protect their information.…

    • 339 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Xeco 212 Week 1

    • 469 Words
    • 2 Pages

    With all of this in mind I would find principle three the most useful in this process. Rational people think at the margin, this allows for minor changes along my path while allowing me to weigh marginal cost and marginal benefit. Within this principle, I, as the decision maker would only progress toward the purchase if the marginal benefit exceeded the marginal cost. I would evaluate this rationally, doing the best I can to achieve my end objective.…

    • 469 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Cja234 Week 3

    • 1331 Words
    • 6 Pages

    The Department of Corrections has continuously changed their goals and objectives throughout the history of corrections. The continuous changes to policies have many contributing factors beginning with the Attorney General, Governors, and appointed directors of the incarceration establishments. With changing laws, new problems arising and changing political stand points based on campaign agendas prisons themselves have been forced to adapt. When asked what the objectives of punishment are here in the U.S., my first thought would be that the goal of punishment would be to enforce society’s laws and ensure the public’s safety. Punishment is also used as a deterrent in the hope it will persuade possible future offenders against committing criminal acts. The objectives of punishment vary between the state and the federal objectives on corrections.…

    • 1331 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    The strength of the economy as a whole could affect the marginal benefits and the marginal costs associated with a decision to purchase a home by the market itself. If the market is in “good condition”, it can lead to a good house hunting experience because rates are at normal. If the market seems to be down as it currently is, there may be some pits and downfalls, but rates are then low, causing house buyers to have more options and selections when purchasing a home. Some home buyers feel that it is in times of recession to buy a home because more money is saved. When there is economic growth, more money is spent on buying a home. When tax deductions are removed on mortgage interest, the result is a fall in demand. Home buyers then find that marginal cost is more than marginal benefits. Other changes in government spending and taxes affect my decision in buying a house in many ways. There are many things to consider when purchasing a home. A house is not an easy thing to purchase. And to that, government changes in costs toward buying homes or changes in the economy already affect this great change. Costs will either go higher, or they will stay steady (though rare, but sometimes true). However, other factors such as taxes are implemented. In some home areas, property taxes are very high so that at the end of the year, one will really reconsider their housing in that…

    • 257 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Xcom 285 Week 3

    • 301 Words
    • 2 Pages

    The technological advancements in communication that was discussed in the article was business communication through some of the latest and hottest technology available. It discussed mash ups and social computing. These forms of communication offers more users and corporate executives a effortless line of communication and a improved way to indicate messages . both forms of communication can be used effective in my workplace environment.…

    • 301 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    Cmgt400 Week 3

    • 1752 Words
    • 8 Pages

    Something you know refers to the use of passwords, passphrases, and codes or PINs. When creating a password, the user must make the decision to create a string of alphanumeric and special characters with differing cases. The longer and more complicated a password the user creates drastically reduces the risk of cracking or brute force attacks. The same password must also be something easily remembered by the user to dissuade it from being written down and stored onsite or left at the workstation. A solution to this is creating a passphrase, a common phrase or date abbreviated and linked together with special characters to create a personal passphrase difficult to crack but easy to remember. An example of this would be a favorite television show with the day and time it airs. A common rule is to create a string at least eight character longs with at least one number and one special character, which this example adheres.…

    • 1752 Words
    • 8 Pages
    Better Essays

Related Topics