Dim pingCounter = O
pingCounter = generateRandom(pingCounter)
Console.WriteLine(The system was pinged & ping)
Console.WriteLine(Please press any key to continue)
Function generateRandom(ByVal pingCounter As
1. Explain what is meant by the term conditionally executed.
Conditionally executed is called a single alternative decision structure because it provides
only one alternative path of execution. The action is conditionally executed because it
FINAL EXAM STUDY GUIDE
1. A case structure is a _ decision structure.
2. What is the expected output of the following flowchart?
a. My age is 31 and your age is less t
Unit 3 Lab 3.4 Programming Challenge
Sub Main ()
Local vairables in this program
Const totalCredits As Double = 90
Dim Students Name As String = NO VALUE
Dim creditsTaken As Double = 0
Dim creditsLeft As Double = 0
Console.Write(Welcome to the ne
/Create payment coupons for each apartment in the 20 buildings. The coupon
/will contain the building number 1 20, apartment number 1 15, month 1 12
/and amount of rent due.
num RENT = 800
buildNum = 0
Unit 9: Research
In many situations, a UNIX IDL user has a choice of using the SPAWN procedure to start a child
process that executes external code and communicates with IDL via a pipe connecting the two
PUT "Welcome to the
Fiber Optic Calculator
"What is the company
"How many feet of fiber
will be installed"
costInstall fiberCost *
Unit 2 Lab 2.3: Visual Basic
Console.WriteLine("This part of the program will code Program 2-6 from page 44")
Dim dollars = 2.75
Console.WriteLine("I have " & dollars & " in my account")
Console.WriteLine("Press any key to contin
Module main ()
Declare string keepGoing = yes
While keepGoing = yes
/Declare local variables
Declare String clientName =
Declare Real feetUTP = 0
Declare Real subTotal = 0
Declare Real taxCost = 0
Declare Real counter = 0
Declare real toPower =2
Declare Real number =2
While counter < 7
Set toPower = 2 ^ number
Display 2 to the power of, number, is, toPower
Set counter = counter + 1
Set number = n
Lab 5.2 Evaluating Conditions with Logical Operators
If tmobileAverage > 800 AND verizonAverage
> 800 Then
Display Both have average download
rates over 800
Dim keepGoing As String = "yes"
While keepGoing = "yes"
Console.Write("Enter yes if you want to run program again: ")
keepGoing = Console.ReadLine()
Dim keepGoing = "Yes"
While keepGoing = "Yes"
Console.WriteLine("Do you want to keep going?")
keepGoing = Console.ReadLine()
Lab 1/Homework 1 Written Exercise from OS Concepts IT109
Microsoft Desktop Operating System
Instructor: Mike Conroy
Student Name: _ Date: _
Lab 1.1: Operating System Functions and Memory Management
What is the purpose?
The purpose of this lab is to help y
What is a shell script?
The Linux and UNIX operating systems were built on shell scripting within its operating system,
its the beating heart of the operating system. Scripting is a way by which one can alleviate this
necessity by automating these command
List five advantages and five disadvantages of using global variables.
Five advantages of using global variables are:
1. It is accessible to all the modules in a program
2. You only have to declare it once outside the modules
3. It is good to use it for c
1. How do modules help you to reuse code in a program?
Modules allow the programmer to write an operation once and then be executed anytime
that it is needed.
2. Name and describe the two parts that a module definition has in the most languag
EXPLORING REVERSE ENGINEERING
What is reverse engineering?
A good example of reverse engineering in the software world is taking a programming language
5. What two things must you normally specify in a variable declaration?
The variable name and data type
6. What value is stored in uninitialized variables?
Although a variable has been declared, it has not been initialized or assigned a valu
1. Why is the CPU the most important component in a computer?
Because without it, the computer would not run software.
2. What number does a bit that is turned on represent? What number does a bit that is
turned off represent?
1 = On
0 = Off
3. What would
What are the variable naming rules of Visual Basic, Python, and Java?
The Visual Basic programming language, to me, seems to be one of the easiest programming
languages to learn. It has simplistic variable naming rules, and are thus explained:
You must us
Chapter 2: Short Answer
1. What does a professional programmer usually do first to gain an understanding of a
It is essential that a programmer understands what a program is supposed to do before
you can determine the steps that the program will