Comp 230 Week 5

In: Computers and Technology

Submitted By rlit
Words 2479
Pages 10
Student Name | | Class | | Date | | VBScript Modular Lab Report

:Run PC_Tests.vbs echo off
:start
cls echo Computer System Analysis echo. & echo. echo [1] Check System Information echo [2] Check System Memory echo [3] Check Operating System Version echo [4] Check Printers Status echo [5] Check Logical Drive Information echo [x] Exit Program" echo. set /p choice="Enter the Number of your Choice .... " if %choice% equ x exit if %choice% equ X exit cscript //nologo Mod1_PCTests.vbs %choice% echo. pause goto start
'=========================================
' Menu Driven Computer / Network Tests
' This VBScript program is run using the PC_Tests.cmd Batch Script
Set args = WScript.Arguments
WScript.Echo vbCrLf
' Select case from Mod1_PCTests.cmd and call subs.
Select Case args.Item(0)
Case "1"
Call System_Information
Case "2"
Call System_Memeory_Size
Case "3"
Call OS_Version
Case "4"
Call Printers_Status
Case "5"
Call Logical_HDD_Information
Case Else
WScript.Echo chr(7) & chr(7) & "Error, Choices are 1,2,3,4,5 or x!!"
' Error check.
End Select
' System Information subroutine.
Sub System_Information
Set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Echo "The computer name is ............ " & _
WshShell.ExpandEnvironmentStrings("%COMPUTERNAME%")
WScript.Echo "The Num of CPUs is .............. " & _
WshShell.ExpandEnvironmentStrings("%NUMBER_OF_PROCESSORS%")
WScript.Echo "The Processor Architecture is ... " & _
WshShell.ExpandEnvironmentStrings("%PROCESSOR_ARCHITECTURE%")
End Sub
' Memory size subroutine.
Sub System_Memeory_Size strComputer = "."
Set objWMIService = GetObject _
("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colComputer = objWMIService.ExecQuery _
("Select * from Win32_ComputerSystem")
For Each objComputer in colComputer intRamMB =…...

Similar Documents

Sci/230 Week 5

...installation site and commences recording the code into a mRNA molecule. This molecule then tours to the ribosome where it is converted into the certain protein administered by the gene in the DNA. That protein is then reproduced as an expressed trait. Resources Johnson, Hilary Dr. (2013 June, 3) DNA structure and sequence - Genetics home reference. Retrieved 6/7/2013 from: www.ghr.nlm.nih.gov/handbook/basics/dna Author Unknown (2010 June, 11) Genotype and Phenotype - Science Learn Retrieved 6/7/2013 from: sciencelearn.org Simon, E.J., Reece, J.B., & Dickey, J.L. (2010). Campbell Essential Biology with Physiology (3rd ed.). San Francisco, CA: Pearson Benjamin Cummings Andre Robles joffreydnse@email,phoenix.edu SCI/230 - Week 5 Assignment...

Words: 453 - Pages: 2

Comp 274 Week 5

...HELPIDO.COM ------------------------------------------------------- Follow this link to get the tutorial http://helpido.com/comp-274-week-5-3/ ------------------------------------------------------- COMP 274 - Week 5 Programming Assignment ________________________________________ Write a Screen Saver program that generates random shapes of random colors and sizes at random positions within the display area. Add controls so typing different keys on the keyboard cause the window to change size and background color as described below. Requirements: 1. You can NOT use loops of any kind in this program. 2. Your member variables must be private. 3. Your screen saver class must inherit from the JPanel class and it must have a JFrame member variable. 4. Your program must keep track of the number of shapes it draws on the screen and after 25 shapes have been drawn, it must clear the screen. This is most easily done by calling the base class (JPanel’s) paintComponent method. 5. You should use the Timer object to generate ActionEvents to drive your Screen Saver. Set the timer to fire an ActionEvent once a second. This will cause your actionPerformed method execute, which should simply call the repaint method. Calling the repaint method causes your paintComponent method to execute. 6. Your paintComponent method will do all the work to select a random color, random shape and random position within the boundaries of your panel, and draw that shape,......

Words: 709 - Pages: 3

Comp 274 Week 5

...HELPIDO.COM ------------------------------------------------------- Follow this link to get the tutorial http://helpido.com/comp-274-week-5-3/ ------------------------------------------------------- COMP 274 - Week 5 Programming Assignment ________________________________________ Write a Screen Saver program that generates random shapes of random colors and sizes at random positions within the display area. Add controls so typing different keys on the keyboard cause the window to change size and background color as described below. Requirements: 1. You can NOT use loops of any kind in this program. 2. Your member variables must be private. 3. Your screen saver class must inherit from the JPanel class and it must have a JFrame member variable. 4. Your program must keep track of the number of shapes it draws on the screen and after 25 shapes have been drawn, it must clear the screen. This is most easily done by calling the base class (JPanel’s) paintComponent method. 5. You should use the Timer object to generate ActionEvents to drive your Screen Saver. Set the timer to fire an ActionEvent once a second. This will cause your actionPerformed method execute, which should simply call the repaint method. Calling the repaint method causes your paintComponent method to execute. 6. Your paintComponent method will do all the work to select a random color, random shape and random position within the boundaries of your panel, and draw that shape, keeping count of......

Words: 709 - Pages: 3

Comp 274 Week 5

...HELPIDO.COM ------------------------------------------------------- Follow this link to get the tutorial http://helpido.com/comp-274-week-5-3/ ------------------------------------------------------- COMP 274 - Week 5 Programming Assignment ________________________________________ Write a Screen Saver program that generates random shapes of random colors and sizes at random positions within the display area. Add controls so typing different keys on the keyboard cause the window to change size and background color as described below. Requirements: 1. You can NOT use loops of any kind in this program. 2. Your member variables must be private. 3. Your screen saver class must inherit from the JPanel class and it must have a JFrame member variable. 4. Your program must keep track of the number of shapes it draws on the screen and after 25 shapes have been drawn, it must clear the screen. This is most easily done by calling the base class (JPanel’s) paintComponent method. 5. You should use the Timer object to generate ActionEvents to drive your Screen Saver. Set the timer to fire an ActionEvent once a second. This will cause your actionPerformed method execute, which should simply call the repaint method. Calling the repaint method causes your paintComponent method to execute. 6. Your paintComponent method will do all the work to select a random color, random shape and random position within the boundaries of your panel, and draw that shape, keeping count of......

Words: 709 - Pages: 3

Comp274 Comp/274 Comp 274 Week 5

...HELPIDO.COM ------------------------------------------------------- Follow this link to get the tutorial http://helpido.com/comp-274-week-5-3/ ------------------------------------------------------- COMP274 COMP/274 COMP 274 Week 5 Programming Assignment ________________________________________ Write a Screen Saver program that generates random shapes of random colors and sizes at random positions within the display area. Add controls so typing different keys on the keyboard cause the window to change size and background color as described below. Requirements: 1. You can NOT use loops of any kind in this program. 2. Your member variables must be private. 3. Your screen saver class must inherit from the JPanel class and it must have a JFrame member variable. 4. Your program must keep track of the number of shapes it draws on the screen and after 25 shapes have been drawn, it must clear the screen. This is most easily done by calling the base class (JPanel’s) paintComponent method. 5. You should use the Timer object to generate ActionEvents to drive your Screen Saver. Set the timer to fire an ActionEvent once a second. This will cause your actionPerformed method execute, which should simply call the repaint method. Calling the repaint method causes your paintComponent method to execute. 6. Your paintComponent method will do all the work to select a random color, random shape and random position within the boundaries of your panel, and draw that shape,......

Words: 712 - Pages: 3

Comp274 Comp/274 Comp 274 Week 5

...HELPIDO.COM ------------------------------------------------------- Follow this link to get the tutorial http://helpido.com/comp-274-week-5-3/ ------------------------------------------------------- COMP 274 - Week 5 Programming Assignment ________________________________________ Write a Screen Saver program that generates random shapes of random colors and sizes at random positions within the display area. Add controls so typing different keys on the keyboard cause the window to change size and background color as described below. Requirements: 1. You can NOT use loops of any kind in this program. 2. Your member variables must be private. 3. Your screen saver class must inherit from the JPanel class and it must have a JFrame member variable. 4. Your program must keep track of the number of shapes it draws on the screen and after 25 shapes have been drawn, it must clear the screen. This is most easily done by calling the base class (JPanel’s) paintComponent method. 5. You should use the Timer object to generate ActionEvents to drive your Screen Saver. Set the timer to fire an ActionEvent once a second. This will cause your actionPerformed method execute, which should simply call the repaint method. Calling the repaint method causes your paintComponent method to execute. 6. Your paintComponent method will do all the work to select a random color, random shape and random position within the boundaries of your panel, and draw that shape, keeping count of......

Words: 709 - Pages: 3

Comp274 Comp/274 Comp 274 Week 5

...HELPIDO.COM http://helpido.com/comp-274-week-5/ COMP274 COMP/274 COMP 274 WEEK 5 PROGRAMMING ASSIGNMENT ________________________________________ Timer and Mouse Events and Java Graphics Introduction The purpose of this week’s programming assignment is to learn how to deal with events from multiple sources. In addition, we will learn how to use some of Java’s graphics capabilities for drawing shapes in a display area. The programming assignment for this week is to implement a simple paddle ball game. Paddle Ball Game Overview The paddle ball game is a simplification of the Pong game. In the Pong game, a ball is moving around the display, bouncing off walls. The player moves a paddle in one dimension, trying to hit the ball whenever possible. If the ball hits the paddle, it bounces off and continues on its way. If the paddle misses the ball, the ball goes off the end of the display area and the player loses a point. In our paddle ball game, the ball moves around the display, bouncing off walls just as in the Pong game. The player controls a paddle trying to hit the ball just like in the Pong game. If the ball hits the paddle, it bounces off and continues on its way. The main difference in our game is that if the player misses the ball, the ball simply bounces off the wall behind the paddle and continues to travel. There is no scoring in this game. Object Oriented Design If we analyze the game description we can see there are several different......

Words: 2412 - Pages: 10

Comp274 Comp/274 Comp 274 Week 5

...HELPIDO.COM http://helpido.com/comp-274-week-5/ COMP274 COMP/274 COMP 274 WEEK 5 PROGRAMMING ASSIGNMENT ________________________________________ Timer and Mouse Events and Java Graphics Introduction The purpose of this week’s programming assignment is to learn how to deal with events from multiple sources. In addition, we will learn how to use some of Java’s graphics capabilities for drawing shapes in a display area. The programming assignment for this week is to implement a simple paddle ball game. Paddle Ball Game Overview The paddle ball game is a simplification of the Pong game. In the Pong game, a ball is moving around the display, bouncing off walls. The player moves a paddle in one dimension, trying to hit the ball whenever possible. If the ball hits the paddle, it bounces off and continues on its way. If the paddle misses the ball, the ball goes off the end of the display area and the player loses a point. In our paddle ball game, the ball moves around the display, bouncing off walls just as in the Pong game. The player controls a paddle trying to hit the ball just like in the Pong game. If the ball hits the paddle, it bounces off and continues on its way. The main difference in our game is that if the player misses the ball, the ball simply bounces off the wall behind the paddle and continues to travel. There is no scoring in this game. Object Oriented Design If we analyze the game description we can see there are several different......

Words: 2412 - Pages: 10

Comp274 Comp/274 Comp 274 Week 5

...HELPIDO.COM ------------------------------------------------------- Follow this link to get the tutorial http://helpido.com/comp-274-week-5-3/ ------------------------------------------------------- COMP274 COMP/274 COMP 274 WEEK 5 ________________________________________ Write a Screen Saver program that generates random shapes of random colors and sizes at random positions within the display area. Add controls so typing different keys on the keyboard cause the window to change size and background color as described below. Requirements: 1. You can NOT use loops of any kind in this program. 2. Your member variables must be private. 3. Your screen saver class must inherit from the JPanel class and it must have a JFrame member variable. 4. Your program must keep track of the number of shapes it draws on the screen and after 25 shapes have been drawn, it must clear the screen. This is most easily done by calling the base class (JPanel’s) paintComponent method. 5. You should use the Timer object to generate ActionEvents to drive your Screen Saver. Set the timer to fire an ActionEvent once a second. This will cause your actionPerformed method execute, which should simply call the repaint method. Calling the repaint method causes your paintComponent method to execute. 6. Your paintComponent method will do all the work to select a random color, random shape and random position within the boundaries of your panel, and draw that shape, keeping count of the......

Words: 710 - Pages: 3

Comp274 Comp/274 Comp 274 Week 5

...HELPIDO.COM ------------------------------------------------------- Follow this link to get the tutorial http://helpido.com/comp-274-week-5-3/ ------------------------------------------------------- COMP274 COMP/274 COMP 274 WEEK 5 ________________________________________ Write a Screen Saver program that generates random shapes of random colors and sizes at random positions within the display area. Add controls so typing different keys on the keyboard cause the window to change size and background color as described below. Requirements: 1. You can NOT use loops of any kind in this program. 2. Your member variables must be private. 3. Your screen saver class must inherit from the JPanel class and it must have a JFrame member variable. 4. Your program must keep track of the number of shapes it draws on the screen and after 25 shapes have been drawn, it must clear the screen. This is most easily done by calling the base class (JPanel’s) paintComponent method. 5. You should use the Timer object to generate ActionEvents to drive your Screen Saver. Set the timer to fire an ActionEvent once a second. This will cause your actionPerformed method execute, which should simply call the repaint method. Calling the repaint method causes your paintComponent method to execute. 6. Your paintComponent method will do all the work to select a random color, random shape and random position within the boundaries of your panel, and draw that shape, keeping count of the......

Words: 710 - Pages: 3

Comp 230 Week 4 Ilab

...1 OR computer > 4 WScript.Echo WScript.Echo ("The IP Address in Room " & room & " for computer " & computer & " is " & ipAddress(room-100,computer-1)) WScript.Echo ' Display All IP Address 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.Write Chr(7) WScript.Stdout.Write Chr(7) WScript.Echo "Error, Y,y,N,n response Only!!!" 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.Echo "The IP Address in Room " & room+100 & " for Computer " & computer+1 & " is " & _ ipAddress(room,computer) Next Next End If room = CInt(roomStr) If room < 100 OR room > 105 Then WScript.Stdout.Write Chr(7) WScript.Stdout.Write Chr(7) WScript.Echo "Error, 100 to 105 Only!!!" 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.Write Chr(7) WScript.Stdout.Write Chr(7) ......

Words: 1989 - Pages: 8

Comp 230 Week 4 Lab

...Student Name | | Class | COMP 230 | Date | 06/01/2015 | VBScript IP Array Report In the space provided below, copy and paste your IP_Array.vbs Program Code. If it doesn’t fit, use the next page for the continuation of your sourcecode program. ' VBScript: IP_Array.vbs ' Written by: Cornelius Harrell ' Date: 06/28/2015 ' Class: COMP230 ' Professor: Mir Daryabigi ' =================================== ' 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" pAddress(5,2)="192.168.10.53" ipAddress(5,3)="192.168.10.54" ' Define program variables roomStr="" compStr="" roomNum=0 compNum=0 ans = "" Do ......

Words: 1270 - Pages: 6

Comp 230

...output runs. During the first 6 weeks of this course, you will be introduced to a variety of topics in VBScript. These topics include the following. VBScript Introduction: Variables, Constants, and Data Types VBScript Output Methods, VBScript Input Methods VBScript Decision-Making Statements VBScript Loop Structures and Arrays VBScript Procedures and Functions VBScript File Input/Output Methods The Course Project is worth 170 points and is comprised of the following deliverables. Week 3: Outline (30 points) Week 6: Complete proposal (140 points) The following is a list of guidelines for your Course Project, due in Week 6. The complete proposal should include the following. Introduction Description of program (script) Source Code with detailed comments Source Code should contain a minimum 5 out of 6 topics learned during this session. Explain the output along with screenshots of the output Conclusion All DeVry University policies are in effect, including the plagiarism policy. Use each week’s lecture, reading assignments, labs, and discussions as guidance and supporting information for your proposal. APA formatting is required for your proposal. The proposal shall be your individual and original work. This is not a team project. The proposal is intended to be a professional document. - See more at: http://www.topnotchpapers.com/comp-230/#sthash.2w62xZSC.dpuf...

Words: 343 - Pages: 2

Acc 230 Week 5 Acc230 Week 5

...ACC 230 Complete Course ACC230 Complete Course Click Link for The Answer: http://workbank247.com/q/acc-230-complete-course-acc230-complete-course/13459 http://workbank247.com/q/acc-230-complete-course-acc230-complete-course/13459 ACC 230 WEEK 1 DQ 1 AND DQ 2 Discussion Questions Go to the U.S. Securities and Exchange Commission’s Web site at http://www.sec.gov and the Financial Accounting Standards Board’s Web site at http://www.fasb.org. Identify the mission and main activities of each organization. Then, analyze the similarities and differences between the roles of each entity. Which entity has more influence over financial statement reporting? Explain your answer.  Search the Internet or the Online Library for information about the Sarbanes-Oxley Act. A useful guide to some of these provisions is located athttp://www.soxlaw.com. Summarize at least two provisions of the law, and discuss your interpretation of these provisions with your classmates. Do you think this law will make financial statements more reliable? Also, discuss how Sarbanes-Oxley establishes boundaries to ensure ethical practices. What does the law allow or prohibit, and why? ACC 230 WEEK 1 CHECKPOINT FINANCIAL STATEMENTS CheckPoint: Assessing Financial Statements  Resource: Ch. 2 of Understanding Financial Statements, and Ch. 1 PowerPoint® (pp. 1-10, 1-11, and 1-13)  Search the Internet for the financial statements of your favorite company or your employer. You may either locate the......

Words: 1790 - Pages: 8

Comp 230 Week 1 to 7 Quiz and Final Exam

...COMP 230 Week 1 to 7 Quiz and Final Exam Purchase here http://devrycourse.com/COMP%20230/comp-230-week-1-to-7-quiz-and-final-exam Product Description Week 1 Quiz Week 2 Quiz Week 3 Quiz Week 4 Quiz Week 5 Quiz Week 6 Quiz Week 7 Quiz Week 8, Final Exam COMP 230 Week 1 to 7 Quiz and Final Exam Purchase here http://devrycourse.com/COMP%20230/comp-230-week-1-to-7-quiz-and-final-exam Product Description Week 1 Quiz Week 2 Quiz Week 3 Quiz Week 4 Quiz Week 5 Quiz Week 6 Quiz Week 7 Quiz Week 8, Final Exam COMP 230 Week 1 to 7 Quiz and Final Exam Purchase here http://devrycourse.com/COMP%20230/comp-230-week-1-to-7-quiz-and-final-exam Product Description Week 1 Quiz Week 2 Quiz Week 3 Quiz Week 4 Quiz Week 5 Quiz Week 6 Quiz Week 7 Quiz Week 8, Final Exam COMP 230 Week 1 to 7 Quiz and Final Exam Purchase here http://devrycourse.com/COMP%20230/comp-230-week-1-to-7-quiz-and-final-exam Product Description Week 1 Quiz Week 2 Quiz Week 3 Quiz Week 4 Quiz Week 5 Quiz Week 6 Quiz Week 7 Quiz Week 8, Final Exam COMP 230 Week 1 to 7 Quiz and Final Exam Purchase here http://devrycourse.com/COMP%20230/comp-230-week-1-to-7-quiz-and-final-exam Product Description Week 1 Quiz Week 2 Quiz Week 3 Quiz Week 4 Quiz Week 5 Quiz Week 6 Quiz Week 7 Quiz Week 8, Final Exam COMP 230 Week 1 to 7 Quiz and Final Exam Purchase here http://devrycourse.com/C...

Words: 486 - Pages: 2

The Greatest Showman Original Motion Picture Soundtrack | Amy Burrows | Films CAM TS R5 et DVDSCR