Professional Documents
Culture Documents
Chapter 1 - Introduction To Programming Concepts Week 1
Chapter 1 - Introduction To Programming Concepts Week 1
Introduction to Programming
Inside your computer, there are more bits of hardware including the
motherboard where you would find the main processing chips that make up the
central processing unit (CPU). The hardware processes the commands it receives
from the software, and performs tasks or calculations.
Data Representation
At least, these all seem different to us. However, ALL types of information stored
in a computer are stored internally in the same simple format: a sequence of 0's
and 1's.
Digital Electronics
One major distinction between kinds of data is between digital and analog
data. Digital data code everything they represent in terms of figures (inside the
computer, in binary digits); analog data bear an iconic resemblance to the
phenomena they represent. Digital computers can only process digital data
(because a bit is either set or not set, but not 37% set).
Analog data therefore have to be digitalized before they enter the digital
computer (and they may be re-analogized if they leave it in order to be perceived).
How can a computer represent numbers using bits? The 0 and 1 are also known
as bits or binary digits.
Numeric data like your age, salary, and electricity bill are easily
understood by humans but how is it possible for a computer to show a number
using only binary digits? The computer uses the binary number system which
uses only two digits: 0 and 1. There are no 2’s or 3’s. A series of 0’s and 1’s
results in a particular number much in the same way as the decimal number
system we use.
The table below above shows how the binary system works. The decimal system
used ten symbols or numerals (0 – 9) to represent numbers while the binary
number system uses only two symbols (0 and 1).
Notice in the figure above that there are 4 digits, namely, 0, 1, 0 and 1.
The positions of the 0’s and 1’s holds significant values. The illustration will show
the corresponding position and value in the binary number system.
If the box contains 0, the value is turned ―offline. However, if the box
contains 1, the value of that box is turned ―online and will be added to the value
of the number. Such a number system, where the placement of a symbol or
numeral carries weight, is called a ―positional number system. The decimal
number system is considered a positional number system. But how then a
computer represents words and letters using bits?
A bit (short for binary digit) is the smallest unit of data in a computer. A
bit has a single binary value, either 0 or 1. Although computers usually provide
instructions that can test and manipulate bits, they generally are designed to
store data and execute instructions in bit multiples called bytes.
Some people interchange the use of bits and bytes. Note that bit is a
contraction of binary digit. The abbreviation for bit is a lowercase “b”.
On the other hand, the unit bytes are usually used in measuring capacity.
For instance, bytes are used to measure the capacity of hard disks (e.g., 80 GB
or Giga Bytes).
Bits and bytes use prefixes to indicate large values. Note that the
measurement is in base 2. A common mistake is to think that the binary kilo
prefix refers to a factor of 1000.
Actually, the closest to 1000 in binary is 210, which is 1024 and not 1000.
Knowing that, we can evaluate then that a kilobit (a.k.a. Kb or Kbit) is 1024 bits
and a kilobyte (a.k.a. KB or Kbyte) is 1024 bytes. Note that the prefix is lowercase
for the decimal kilo and uppercase for the binary version. The table below shows
the prefixes with the corresponding abbreviation and capacity/value.
Digital Electronics
Based in the figure above it explain each part that are listed below.
Input devices are machines that generate input for the computer, such
as keyboard and mouse.
Software is the name given to the programs that you install on the
computer to perform certain types of activities. There are operating system
software, such as the Apple OS for a Macintosh, or Windows 98 or Windows XP
for a PC. There is also application software, like the games we play, or the tools
we use to compose letters or do math problems.
Software Basics
Here are the terms that you need to know in software basics:
Sometimes, the term “Software” is used too loosely and could cause
confusion. Before, the term software is always associated to all non-hardware
components of a computer. However, modern definitions make it clear that all
documents, spreadsheets, and even downloaded materials from the internet are
now classified as data which means that not all non-hardware components of a
computer are classified as software.
This form of the program is called the source program, or more generically,
source code. To execute the program, however, the programmer must translate
it into machine language, the language that the computer understands. The first
step of this translation process is usually performed by a utility called a compiler.
The compiler translates the source code into a form called object code.
Sometimes, the object code is the same as machine code; or sometimes it needs
to be translated into machine language by a utility called an assembler.
Software is basically categorized into two:
Application Software
System Software
SDLC involves five phases. Each phase plays an important role in creating
a good system. The said phases are: Planning, Analysis, Design, Implementation,
and Maintenance. Note that, implementing SDLC may involve several
approaches. It is possible that other books may have a more detailed explanation
to the approach of SDLC. Our intention is just to have a basic, not
comprehensive, understanding of SDLC.
Planning Phase
Planning is the initial stage in the SDLC that has to be performed. This
phase includes information about the requirements for the proposed software.
Also, this phase is known as the feasibility study phase. For larger companies
that deal with complicated software, it is vital that these requirements are
properly identified so that the development of the software may not be delayed
or strayed from the original objective. The purpose of the planning phase is to
conduct a high-level investigation of the business or project, and come up with
a recommendation for the solution.
Analysis Phase
The Analysis phase requires the analyst to thoroughly study the current
procedures or software used to execute tasks in an organization. The main goal
in this phase is to identify the requirements for new software or simply change
several aspects in the current working software.
Design Phase
During the Design phase, the developer of the software translates the
result of the previous phase into actual design or specifications of the software.
Development of the software involves covering the input and output screens to
reports, databases, and computer process.
The purpose of this phase is to identify and document a solution that will
be constructed according to technical and procedural specifications. Design
document will be created that should include but not limited to technical,
environmental, data, program, procedural, and testing specifications. The
activities performed in this phase are:
Implementation Phase
After the design phase, we must put the proposed software into the test.
During this phase, implementing the software will include several steps:
Maintenance Phase
With every phase being completed, perhaps the maintenance phase would
be the most prevalent phase of all. There are some bugs in the software which
can’t be properly identified without putting the software into actual use. The
maintenance phase is used to make necessary patches to remove found errors.
This is where the software is systematically repaired and improved based on
errors or possible new requirements found.
Waterfall SDLC
The waterfall SDLC suggests that prior to the next phase, the current
phase should be finished first. But applying this strategy in the real world would
be unfeasible since it would be impossible to modularize system development.
This version of the SDLC is more flexible compared to the traditional SDLC
model. Since the nature of developing software is unpredictable, using this model
will allow the developer to adjust to certain situations, such as unforeseen
requirements, or additional features that are highly needed in the software.
Different I.T. Professionals
Hundreds, if not thousands, of IT job titles have been developed since the
dawn of the information era. Technology is continuously evolving, and it appears
that with each new innovation or upgrade, more and more specialized IT job titles
are being developed to match them.
Software Developer
Someone must build computer applications before firms can use them.
Web functionality tools, video games, device drivers, operating systems,
corporate productivity software, and other programs are all created by software
developers.
Network Administrator
Computer Scientist
System Analyst
Tech Support
IT Consultant
Software Tester