CSC 101 Note
CSC 101 Note
1
A UNIVAC computer at the Census Bureau. Image
Source: United States Census Bureau
The world would see transistors replace vacuum tubes in the second generation of
computers. The transistor was invented at Bell Labs in 1947 but did not see
widespread use in computers until the late 1950s.
The transistor was far superior to the vacuum tube, allowing computers to become
smaller, faster, cheaper, more energy-efficient, and more reliable than their first-
generation predecessors. Though the transistor still generated a great deal of heat
that subjected the computer to damage, it was a vast improvement over the vacuum
tube. Second-generation computers still relied on punched cards for input and
printouts for output.
2
An early Philco Transistor
(1950s). Image Source: Vintage Computer Chip Collectibles
The first computers of this generation were developed for the atomic energy
industry.
The development of the integrated circuit was the hallmark of the third generation
of computers. Transistors were miniaturized and placed on silicon chips,
called semiconductors, which drastically increased the speed and efficiency of
computers.
Instead of punched cards and printouts, users interacted with third generation
computers through keyboards and monitors and interfaced with an operating
3
system, which allowed the device to run many different applications at one time with
a central program that monitored the memory. Computers for the first time became
accessible to a mass audience because they were smaller and cheaper than their
predecessors.
In 1981, IBM introduced its first computer for the home user, and in
1984 Apple introduced the Macintosh. Microprocessors also moved out of the realm
of desktop computers and into many areas of life as more and more everyday
products began to use microprocessors.
As these small computers became more powerful, they could be linked together to
form networks, which eventually led to the development of the Internet. Fourth
generation computers also saw the development of GUIs,
the mouse and handheld devices.
4
Intel’s first
microprocessor, the 4004, was conceived by Ted Hoff and Stanley Mazor. Image
Source: Intel Timeline (PDF)
Quantum computation and molecular and nanotechnology will radically change the
face of computers in years to come. The goal of fifth-generation computing is to
develop devices that respond to natural language input and are capable of learning
and self-organization.
5
CLASSIFICATION OF COMPUTERS ACCORDING TO SIZE, TYPE AND
PURPOSE
We see many Computers nearby, but they all are different from each other. We are
going to know about the basics and classification of computers which included all
the different types of computers.
There are different classes of computer technology available these days. The
functionality and data processing of each type of computer is different and output
results as well.
6
occupy huge premises) designed to process vast amounts of data in a short time with
high productivity.
These are specially made to perform multi-specific tasks. Therefore, many CPUs
work in parallel order on these supercomputers. This function of a Supercomputer is
called Multiprocessing or Parallel Processing.
Each part of a supercomputer is responsible for its own specific task, such as
structuring and solving the most complex problems requiring an incredible amount
of calculations.
7
Good to Know ~ World’s first supercomputer is the Control Data
Corporation (CDC) 6600 invented by Seymour Cray.
2. Mainframe Computer
Mainframe computers are multi-programming, high-performance computers,
and multi-user, which means they can handle the workload of more than 100 users
at a time on the computer.
The storage capacity of the mainframe is enormous, with a high-speed data process
as well. As well as handling hundreds of input and output devices at a time.
8
In today, IBM company is leading the production of mainframe computers.
Mainframe reliability is increased with development in the past 60 years. These
computers can fix most of the hardware and software bugs.
Using the mainframe completes the tasks, Such as keeping details of payments,
research centres, advertising, sending bills and notices, paying employees, ticket
booking, maintaining details of purchases by users, keeping detailed tax details, etc.
3. Mini Computer
Minicomputer is a digital and multi-user computer system with the connection of
more than one CPU. Thus, many people can work on these computers
simultaneously instead of a single person. Also, it can process with other accessories
like a printer, plotter, etc.
Minicomputers are the medium type of computers that have more functionality
power and are expensive than microcomputers. On the other hand, the size, storage,
and speed of minicomputers are large but less than the mainframe and
supercomputers.
9
Minicomputers are made for performing multiple computing tasks at a single point
of time, instead of assigning many microcomputers for a single task, which will be
time-consuming and expensive.
4. Micro Computer
Today we are using many computers at home is also the most common
microcomputer. With this invention of the microprocessors in the year 1970, it
became possible to use computers for people personally at a low cost and reasonable
price known as Digital Personal Computer.
10
systems, networks, and Servers all these need to connect to form a complete Personal
Digital Computer.
The primary purpose of microcomputers is to keep and process the everyday tasks
and needs of the people. Only one person can work on a single PC at a time, but its
operating system is multitasking. The PC can be connected to the Internet to take
benefits and enhance the user experience.
The development of multimedia, small equipment, optimized energy consumption,
and the LAN made the microcomputers increase in demand for every field.
The increase in the demand and need for microcomputers between the people leads
to the tremendous development of each part related to the microcomputers.
11
CHAPTER TWO
External hardware
• Examples: monitor, printer, scanner, speaker, display screen (tablet, smartphone …),
projector, head phone, etc.
12
Internal hardware
Computer software
13
Application software
System Software
14
• Main functions of system software – allocating system resources, managing storage
space, storing and retrieval of files, providing security, etc.
• Main types of systems software – operating system, device driver, utility software,
programming software, etc.
Operating system (OS) – a software that controls and coordinates the computer
hardware devices and runs other software and applications on a computer. It is the
main part of system software and a computer will not function without it.
• The main purpose of device driver – it acts as a translator between the hardware
device and operating systems or applications that use it.
• Examples of device driver: printer driver, display driver, USB driver, sound
card driver, motherboard driver, ROM driver, etc.
15
Utility software – a type of system software that helps set up, analyze, configure,
strengthen, maintain a computer and performs a very specific task (e.g. antivirus
software, backup software, memory tester, screen saver, etc.).
USES OF COMPUTER
Computers at Home
There are many things that a computer can do at home, such as:
16
• Some work from home jobs: data entry, web developer,
freelance writer, travel agent, call centre representative, online teaching job,
software engineer, social media manager, translator, accountant, bookkeeper, etc.
Online banking
• Online banking allows users to make bill payments, view account details, open a
new account, money transfers, pre-authorized payments, e-transfer, apply for loans,
etc.
Entertainment
17
• Computers are used in a variety of areas for
entertainment purposes, such as videos, movies, television, music, photo editing, and
art (for example, paintings, pictures, poetry, etc., are just a click away).
Computer games
Computers in education
• Distance education
• eLearning
18
• Computer aided teaching and learning. This includes research, school work, storage
of information, quick data processing, audio-visual aids in teaching, better
presentation of information (PowerPoint, Moodle, smart-boards, etc.), entering and
viewing grades online, quick communication between students and instructors, etc.
Computers in business
Computer can help a business start, run, manage, and grow. Computers can be used
in business for:
• e-commerce
• And more
Computers in healthcare
19
Computers play a crucial role in the healthcare field,
such as:
• Medical imaging and equipment. This includes X-rays, CT scans, MRI scans
(Magnetic Resonance Imaging—it can produce a detailed body image), etc.
• Patient monitoring
• Computer-controlled surgeries
• Diagnostic databases (create a database of a patient records with their treatment and
medicine records)
• Medical research
• Blood testing (take blood samples and analyze the results with computer)
Computers in science/engineering
20
• Research
• Design (prototype)
• Modelling
• Simulate experiments
• Report/communication
21
CHAPTER THREE
NUMBER SYSTEMS
The number system or the numeral system is the system of naming or representing
numbers.
Now, let us discuss the different types of number systems with examples.
22
2. The figures described under this system are known as binary numbers which are
the combination of 0 and 1. For example, 110101 is a binary number.
We can convert any system into binary and vice versa.
Example
Write (14)10 as a binary number.
Solution:
Hexadecimal 0 1 2 3 4 5 6 7 8 9 A B C D E F
Decimal 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
24
Number System Conversion
Numbers can be represented in any of the number system categories like binary,
decimal, hex, etc. Also, any number which is represented in any of the number
system types can be easily converted to
The number 349 in the binary number system is 101011101
The number 349 in the decimal number system is 349.
The number 349 in the octal number system is 535.
The number 349 in the hexadecimal number system is 15D
8 4182 Remainder
8 522 6
8 65 2
8 8 1
25
8 1 0
0 1
Example 2:
Convert (1001001100)2 to decimal number.
Solution:
(1001001100)2
= 1 x 29 + 0 x 28 + 0 x 27 + 1 x 26 + 0 x 25 + 0 x 24 + 1 x 23 + 1 x 22 + 0 x 21 + 0 x
20
= 512 + 64 + 8 + 4
= (588)10
Example 3:
Convert 101012 into an octal number.
Solution:
Given,
101012 is the binary number
We can write the given binary number as:
010 101
Now as we know, in octal number system,
010 → 2
101 → 5
26
Therefore, the required octal number is 258
Example 4:
Convert hexadecimal 2C to decimal number.
Solution:
We need to convert 2C16 into binary numbers first.
2C → 0010 1100
Now convert 001011002 into a decimal number.
101100 = 1×25+1×23+1×22
=32+8+4
=44
27
BINARY OPERATIONS
• 0+0=0
• 0+1=1
• 1+0=1
• 1 + 1 =10
———————–
1001000
28
Binary Subtraction
• 0–0=0
• 0 – 1 = 1 ( with a borrow of 1)
• 1–0=1
• 1–1=0
29
0 1 0 0 0 1 0 = 3410
(-) 0 0 0 1 0 1 0 = 1010
——————
0 0 1 1 0 0 0 = 2410
Binary Division
• 1÷1 = 1
• 1÷0 = Meaningless
• 0÷1 = 0
• 0÷0 = Meaningless
• Divide
• Multiply
• Subtract
• Bring down
30
Question: Solve 01111100 ÷ 0010
Solution:
Given
01111100 ÷ 0010
Here the dividend is 01111100, and the divisor is 0010
Remove the zero’s in the Most Significant Bit in both the dividend and
divisor, that doesn’t change the value of the number.
So the dividend becomes 1111100, and the divisor becomes 10.
Now, use the long division method.
• Step 1: First, look at the first two numbers in the dividend and
compare with the divisor. Add the number 1 in the quotient place.
Then subtract the value, you get 1 as remainder.
• Step 2: Then bring down the next number from the dividend
portion and do the step 1 process again
• Step 3: Repeat the process until the remainder becomes zero by
comparing the dividend and the divisor value.
31
• Step 4: Now, in this case, after you get the remainder value as 0,
you have zero left in the dividend portion, so bring that zero to the
quotient portion.
Therefore, the resultant value is quotient value which is equal to 111110
So, 01111100 ÷ 0010 = 111110
Example 2: Solve using the long division method: 101101 ÷ 101
Solution:
Binary Multiplication
• 0×0=0
• 0×1=0
• 1×0=0
• 1 × 1 = 1 [No borrow or carry method is applicable here]
32
Some binary multiplication examples are given below for a better
understanding of this concept.
Example 1: Solve 1010 × 101
Solution:
1010 × 101
1010
(×) 101
—————–
1010
0000
——————
01010 ……. First Intermediate Sum
1010
——————–
110010
Comparison with Decimal values:
10102 = 1010
10102 = 510
10 x 5 = 5010
(110010)2 = 5010
33
Solution:
Examples:
1's complement of "0111" is "1000"
1's complement of "1100" is "0011"
Examples:
2's complement of "0111" is 1000 + 1 to give "1001"
2's complement of "1100" is 0011+1 to give "0100"
34
CHAPTER FOUR
The algorithm and flowchart are two types of tools to explain the process of a
program. In this page, we discuss the differences between an algorithm and a
flowchart and how to create a flowchart to illustrate the algorithm visually.
Algorithms and flowcharts are two different tools that are helpful for creating new
programs, especially in computer programming.
Writing a logical step-by-step method to solve the problem is called the algorithm.
In other words, an algorithm is a procedure for solving problems. In order to solve
a mathematical or computer problem, this is the first step in the process.
Input / Output
35
Process / Instruction
Decision
Connector / Arrow
Algorithm Flowchart
It is a procedure for solving
It is a graphic representation of a process.
problems.
The process is shown in step-by- The process is shown in block-by-block
step instruction. information diagram.
It is complex and difficult to
It is intuitive and easy to understand.
understand.
It is convenient to debug errors. It is hard to debug errors.
The solution is showcased in natural
The solution is showcased in pictorial format.
language.
36
It is somewhat easier to solve
It is hard to solve complex problem.
complex problem.
It costs more time to create an
It costs less time to create a flowchart.
algorithm.
Algorithms are mainly used for mathematical and computer programs, whilst
flowcharts can be used to describe all sorts of processes: business, educational,
personal, and algorithms. So flowcharts are often used as a program planning tool
to organize the program's step-by-step process visually. Here are some examples:
Algorithm:
• Step 1: Initialize X as 0,
• Step 2: Increment X by 1,
• Step 3: Print X,
• Step 4: If X is less than 20 then go back to step 2.
Flowchart:
37
Example 2: Convert Temperature from Fahrenheit (℉) to Celsius (℃)
Algorithm:
Flowchart:
• Average grade is less than 60, print "FAIL", else print "PASS".
Flowchart:
38
NOTE: The decision symbol has three possible values which are Yes, No and
Neutral. This depends on the algorithm
39
CHAPTER FIVE
VB.NET
Masked Text Box Uses a Mask to differetiate proper and improper text input.
40
Useful links in working with VB.Net
Follow the steps in the above to attempt the exercises in CSC101 practical manual.
41