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

  • 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
  • Good Essays

    It237 Week 2 Checkpoint

    • 414 Words
    • 2 Pages

    Throughout this paper I will be describing external, embedded, and inline types of cascading style sheets. Also, I will be providing a pro and a con for each type of cascading style sheet.…

    • 414 Words
    • 2 Pages
    Good 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

    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
  • 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
  • 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
  • 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

    hsm220 week 4 checkpoint

    • 401 Words
    • 2 Pages

    Intrinsic and extrinsic motivations are the factors that are needed to motivate employees to put fourth their best effort so they can be great at what they do in the work place. Managers strive to achieve a job well done by their employees, they must help by making sure they provide the best qualities and work factors to motivate them to do the best they can. In order to be noticed by superiors so they might advance or be promoted within the organization with these motivations in place it’s easier for the employees to do their best. Both styles of motivation are designed to meet the needs of employees so they feel safe and productive in the work place. Intrinsic motivation meets needs that motivate one to grow personally, achieve goals, become responsible and be recognized for their work, extrinsic factors fit physiological, safety, and security needs. Extrinsic factors or hygiene factors can either supply the employee with a high level of satisfaction. The hygiene factors don’t motivate the employees to perform at a high level such as intrinsic motivators, but they do allow the worker to be happy with their job therefore staying dedicated to it.…

    • 401 Words
    • 2 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

    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
  • Better Essays

    Hcs 475 Week 2

    • 1182 Words
    • 5 Pages

    References: McConnell, C. R. (2010). Managing Change. In Management Skills for the New Health Care Supervisor (pp. 401-422). Sudbury, Massachusetts: Jones and Bartlett.…

    • 1182 Words
    • 5 Pages
    Better Essays
  • Satisfactory Essays

    Comp230 W2 Ilab

    • 1120 Words
    • 5 Pages

    Student Name | | Class | Comp230 | Date | 5/16/2013 | VBScript IPO VBox Lab Report ' VBScript: NameAge.vbs ' Written by: ' Date: 5/16/2013 ' Class: Comp230 ' Professor: Giao Dau ' = == == == ==…

    • 1120 Words
    • 5 Pages
    Satisfactory 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

    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
  • 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

Related Topics