EEC 112 - Lecture Notes
EEC 112 - Lecture Notes
UNIT 1
BRIEF INTRODUCTION OF COMPUTER
1.1 What is a Computer?
A computer is a programmable electronic device that accepts raw data as input
and processes it with a set of instructions (a program) to produce the result as
output. It renders output just after performing mathematical and logical
operations and can save the output for future use. It can process numerical as
well as non-numerical calculations.
A computer is designed to execute applications and provides a variety of
solutions through integrated hardware and software components. It works with
the help of programs and represents the decimal numbers through a string of
binary digits. It also has a memory that stores the data, programs, and result of
processing. The components of a computer such as machinery that includes
wires, transistors, circuits, hard disk are called hardware. Whereas, the
programs and data are called software.
The basic parts without which a computer cannot work are as follows:
Abacus
The history of computer begins with the birth of abacus which is believed to be
the first computer. It is said that Chinese invented Abacus around 4,000 years
ago.
1
Napier's Bones
Pascaline
Difference Engine
Analytical Engine
Mark I
The next major changes in the history of computer began in 1937 when
Howard Aiken planned to develop a machine that could perform calculations
involving large numbers. In 1944, Mark I computer was built as a partnership
between IBM and Harvard. It was the first programmable digital computer.
Modern-day Desktop/Laptop
The latest computers today are the desktop and laptop computers of various
sizes and brands. They all form the type of computers known as
microcomputers which, are reduced in sizes and components.
1.3 Uses of Computer
Computers are playing a vital role in almost every field and making our day-to-
day tasks more manageable. Computers were only used to perform complex
numerical calculations in a previous time, but they have reached too far and
2
now perform many different roles. They are now performing diverse set
functions from complicated calculations to generating business reports, bill
generation to education, programming or development to entertainment, etc.
a) Business
Computers are almost part of a business setup because they increase
productivity and help race in a competitive environment. In businesses,
computers are primarily used to store and manage accounts and personal
data, maintain projects, track inventory status, and make reports and
presentations.
Science
In science, research and engineering, computers are best suited for
b)
collecting, analyzing, categorizing, and storing the data. They also help
scientists to exchange data with each other both internally and
internationally.
Government
In the government sector, computers are beneficial. They are getting
c)
videos, e-books, etc.) in one place. All such information can be accessed
through the Internet. Additionally, computers are best suited for online
classes, online tutoring, online examinations, and creating assignments
and projects.
Industry
Computers are used in industries to perform various tasks, such as
f)
3
Banking has become so advanced in the past few years. Most countries
use online banking systems where customers can access their data
directly using computers and the Internet. People can check their
account balance, transfer money, and pay online bills, including credit
cards. Besides, Banks use computers to perform transactions and store
customer data, transaction records, etc.
5
Memory or Storage Unit
This unit can store instructions, data, and intermediate results. This unit
supplies information to other units of the computer when needed. It is also
known as internal storage unit or the main memory or the primary storage or
Random Access Memory (RAM).
Functions of the memory unit are −
It stores all the data and the instructions required for processing.
It stores intermediate results of processing.
It stores the final results of processing before these results are released
to an output device.
Control Unit
This unit controls the operations of all parts of the computer but does not carry
out any actual data processing operations.
Functions of this unit are −
It is responsible for controlling the transfer of data and instructions
among other units of a computer.
Arithmetic Section
6
Logic Section
Arithmetic Section
Function of arithmetic section is to perform arithmetic operations like addition,
subtraction, multiplication, and division. All complex operations are done by
making repetitive use of the above operations.
Logic Section
Function of logic section is to perform logic operations such as comparing,
selecting, matching, and merging of data.
The Input Mechanism
The input mechanism provides all the devices needed to enter data into the
computer. Before the processing job is carried out, data has to first be sent into
the computer. Following are some of the important input devices which are
used in a computer −
Keyboard
Mouse
Joy Stick
Light pen
Track Ball
Scanner
Graphic Tablet
Microphone
The processed data is being displayed or sent out as output results via the
output devices. Following are some of the important output devices used in a
computer.
Monitors
Graphic Plotter
Printer
UNIT 2
COMPUTER STORAGE
A memory is just like a human brain. It is used to store data and instructions.
Computer memory is the storage space in the computer, where data is to be
processed and instructions required for processing are stored. The memory is
divided into large number of small parts called cells. Each location or cell has a
unique address, which varies from zero to memory size minus one. For
example, if the computer has 64k words, then this memory unit has 64 * 1024
7
= 65536 memory locations. The address of these locations varies from 0 to
65535.
Memory is primarily of three types −
Cache Memory
Primary Memory/Main Memory
Secondary Memory
Cache memory is a very high speed semiconductor memory which can speed
up the CPU. It acts as a buffer between the CPU and the main memory. It is
used to hold those parts of data and program which are most frequently used
by the CPU. The parts of data and programs are transferred from the disk to
cache memory by the operating system, from where the CPU can access them.
The advantages of cache memory are as follows −
It stores the program that can be executed within a short period of time.
Primary memory holds only those data and instructions on which the computer
is currently working. It has a limited capacity and data is lost when power is
switched off. It is generally made up of semiconductor device. These memories
are not as fast as registers. The data and instruction required to be processed
resides in the main memory. It is divided into two subcategories RAM and
ROM.
Characteristics of Main Memory
a) These are semiconductor memories.
b) It is known as the main memory.
c) Usually volatile memory.
d) Data is lost in case power is switched off.
e) It is the working memory of the computer.
f) Faster than secondary memories.
g) A computer cannot run without the primary memory.
UNIT 3
OPERATING SYSTEM
We need a system which can act as an intermediary and manage all the
processes and resources present in the system.
9
Disk Operating System (DOS) is a form of operating system which presents an
interface or working environment inform of command prompts; commands are
only issued with the keyboard and not the mouse.
A disk operating system (DOS) is an operating system for x86 based personal
computers mostly developed by Microsoft. MS-DOS, its rebranding as IBM PC
DOS, and some operating systems attempting to be compatible with MS-DOS.
Sometimes it is referred to as "DOS", which is also the generic acronym for
disk operating system.
MS-DOS was the main operating system for IBM PC compatible personal
computers during the 1980s. It was gradually superseded by operating systems
offering a graphical user interface (GUI) in various graphical Microsoft
Windows operating system generations.
When a computer is powered on, it goes through various steps called the boot
process. For a computer running a disk operating system in the following six
steps, such as:
1. The read-only memory (ROM) bootstrap loader reads the Master Boot
Record and passes control over to it.
2. The boot record loads the disk operating system into memory, and it
takes control of the machine.
3. The computer transfers data stored on a magnetic disk to its main
memory, the random access memory.
4. It also transfers data to external devices attached to the computer, such
as a computer screen or printer.
5. The computer provides various applications programming interfaces for
programs like character input/output, memory management, program
loading, termination, and handling input from the user through a
keyboard.
6. The OS also provides file management that organizes, reads, and writes
files on storage. The files are organized in a hierarchical structure of
directories, subdirectories, and files.
3.2 Windows OS
The Windows Operating System presents the graphical user interface (GUI)
system of computing. Commands are arranged in frames called windows.
10
There are different elements and objects that the user use to interact with the
software to make a user friendly GUI.
bar.
o
Ribbon: Replacement for the file menu and toolbar that groups programs
activities together.
o
Tab: Clickable area at the top of a window that shows another page or
area.
o
11
3.3 Windows Explorer
Windows Explorer is an application that provides detailed information about
your files, folders and drives. You can use it to see how your files are organized
and can be used to copy, move and rename files. Explorer uses the directory
windows to graphically display the directory structure of your disk and files.
Windows or file explorer is divided into two panes. The left pane displays the
list of drives and folders on the computer. The right pane displays the contents
of the selected drive or folder. By using these two panes, you can browse
through the contents of your computer in a single window.
Files and Folders
A file is a resource for recording data for storage into computer memory. It is
created with a name for easy identifications.
Folders on the other hand, are places in the computer’s directory where files
are kept. After creating a folder, we can move files into it or create new files
within the folder.
Files and folders can apart from being created, be copied, moved, renamed or
deleted.
12
1. Create Operation
This operation is used to create a file in the file system. It is the most widely
used operation performed on the file system. To create a new file of a
particular type the associated application program calls the file system. This
file system allocates space to the file.
2. Open Operation
This operation is the common operation performed on the file. Once the file is
created, it must be opened before performing the file processing operations.
When the user wants to open a file, it provides a file name to open the
particular file in the file system. It tells the operating system to invoke the open
system call and passes the file name to the file system.
3. Write Operation
This operation is used to write the information into a file. A system call write is
issued that specifies the name of the file and the length of the data has to be
written to the file.
4. Read Operation
This operation reads the contents from a file. A Read pointer is maintained by
the OS, pointing to the position up to which the data has been read.
5. Re-position or Seek Operation
The seek system call re-positions the file pointers from the current position to a
specific place in the file i.e. forward or backward depending upon the user's
requirement. This operation is generally performed with those file management
systems that support direct access files.
6. Delete Operation
Deleting the file will not only delete all the data stored inside the file it is also
used so that disk space occupied by it is freed.
7. Close Operation
When the processing of the file is complete, it should be closed so that all the
changes made permanent and all the resources occupied should be released.
8. Rename Operation
This operation is used to rename the existing file.
UNIT 4
THE CONCEPT OF SOFTWARE PACKAGE
An application package is simply a bundle of computer software or programs
that is created and compiled to address specific business needs. At times,
hardware is also included in the package to make work easier. Generally,
programs included in a package are interrelated; they increase productivity
and they help accomplish tasks easier. Many packages work on a specific
13
operating system or computer but more often than not, a software developer
offers a particular package for many operating systems.
Examples of computer application packages are:
(i.) Microsoft Office suite (ii.) Lotus Smartsuite (iii.) Microsoft Encarta
Lotus SmartSuite, the award-winning office suite, includes: Lotus 1-2-3, Word
Pro, Lotus Organizer Release, Freelance Graphics, Approach.
MS-Encarta
Microsoft Encarta is a digital encyclopedia program made by Microsoft. It was
initially released on CD-ROM in 1993 and was also available on the Internet via
an annual subscription on the Microsoft Network being identical to Encarta
'95, but branded as "Intro Edition".
Microsoft Encarta Collection runs on the following operating systems:
Android/iOS/Windows/Mac/Linux.
We shall take a look at the functions of MS-word by carrying out the following:
a) Entering Text: MS-Word, like every other word processor allow entering
of text via the keyboard, which is designed in such a way that all text
characters of over 100 characters are found on it. By pressing any of the
keys will cause the cursor to type the character associated with the key
in question.
b) Formatting Text: Features like emboldening, font size, font style and font
type, etc. could be applied on the text entered in the MS-word
environment.
14
c) Creating and Saving Text Files: With this application package, users can
easily create and save files. Once you start the application you can start
typing to create a file. Files can be saved by following a routine to
complete their storage for future use.
d) Editing Text: Editing text could include copy & paste, cut & paste, delete,
add, etc.
g) Creating Tables and Textbox: Tables can be inserted and values entered
in form of rows and columns. Textbox are inserted inside plane shapes to
enable user type or enter text within the shapes.
h) Inserting Shapes: Plane shapes like rectangle, etc. can be inserted into
the document.
j) Page Setup: from the page layout menu, one can customize the
appearance of the page and how text should appear when finally printed
out. Various settings like margin, page size, page orientation, columns,
indentation, paragraph spacing, etc. can be applied.
k) Saving & Printing: The final action one can do on a text document is to
save (store) for future use and then print on hard copy for physical use.
4.2 MS-Word Layout Tools
The default word document layout tools include the following:
Title Bar: displays the document name and the application
Menu Bar: contains the list of menus available inside word, each menu
‘Quick access bar’. The basic shortcut commands on this bar include:
open, close, save, undo, redo, table, new page, etc.
Formatting Toolbar: Contains a list of formatting options available inside
the format menu. Latest versions do not have ‘format menu’, and so the
White Page Area: is the space area where you type, edit and format your
documents.
15
Insertion Point: is the blinking vertical line that indicates the position on
the screen (or on the white page area) where text and other graphics can
Scroll Bars: are used to move up and down, or left and right in the
document.
Status Bar: displays the details such as the page number the user is
working on, section number, page number out of the total pages, and
UNIT 5
GRAPHICS PACKAGE (CORELDRAW)
Graphics packages are the application programs used to create and manipulate
images. CorelDraw provide variety of tasks like that of contrast adjustment,
color balancing, adding special effects like borders to images and it is capable
of working with multiple layers and multiple pages. It is used to develop
banners, business cards, brochures, certificates, envelopes, invoices, memo an
so many other things.
5.1 Components of CorelDraw Environment (Window)
Standard Toolbar: it contains standard option icons like save, copy, cut, etc.
Property Bar: this bar contain or displays the properties of a selected object to
enable users access commands that are specific to the current object or tool
selected.
Tool Box: consists of all the tools which provide different functions in
CorelDraw.
Rulers: the rulers show the height and width of the page and are used in
measurements.
Colour Palette: by default, is located to the right of the work window and is
useful for applying different colours to graphic designs.
Status Bar: the last bar under the work window that indicates some properties
of the cursor as you move it across the window. It also show symbol properties
such as the fill or size.
Page Navigator: for navigating or moving pages. We can also add the pages
through this option.
Dockers Tab: Dockers allow access to effects, styles, colours, and many other
features of CorelDraw. They can be added or removed through the window
menu.
Flyouts in CorelDraw: In CorelDraw tools box there is a small triangle in the
lower right corner of each tool button which display the flyouts. Flyouts contain
the additional tools hidden under the tab of the current tool displayed.
17
A spreadsheet is a software program you use to easily perform mathematical
calculations on statistical data and totaling long columns of numbers or
determining percentages and averages.
A spreadsheet, also called an electronic work sheet, is a computer program
that organizes data into rows and columns in the form of a graph. Each row
and column can be manipulated with formulas, commands, and formats. This
tool is especially useful for accountants, financial analysts, and business people
to analyze business performance numbers and results.
6.1 Spreadsheet Structure
18
4) Business Plan
You can prepare a rough model of your business plan with this. In addition, you
can use it to track various aspects of your company like legal structure, its
strengths, weaknesses, revenue plan, etc. Besides, you can get many online
templates for your business.
5) Accounting
Accounting is one of the major functions of spreadsheets. If you’re an
accountant and want free software to create a balance sheet, financial
statements, budget, you can use spreadsheets for it. Furthermore, you can also
use them for expense tracking, forecasting and calculation of loans.
6) Integration
You can integrate your spreadsheet software with other software to boost its
productivity.
7) Formatting
This software allows you to do formatting to navigate lots of financial data.
With multiple formatting options, you can make your user visually appealing
and understandable. For example titling, colouring, etc.
Disadvantages
Though spreadsheets are free and easy to use but they’re not suitable for all
businesses due to:
1) More Chances of Error
They are more chances of human error who use this software for a large
amount of data. A small mistake can cost you thousands of pounds.
2) Difficult to Share Internally
If a single person is managing the spreadsheet, it works well. But if there are
more members added to the team, it’d be difficult to share and update the
spreadsheet information with the whole team.
3) Difficult for Data Visualization
Though you can prepare charts and graphs on spreadsheets but assembling the
visual data on it is a daunting task.
5) Security Risk
Commonly, spreadsheets are not secure and have a greater risk for
mismanagement. Besides, sensitive information can’t be protected from
hackers, even if it is protected by a password.
the intersection of row and column. Therefore, cells are referenced using
column label and row number, e.g. C5.
Title Bar: Like in MS-Word, it contains the file name and the program
name.
Menu Bar: is made up of different menus, e.g. File, home, insert, design,
page layout, etc.
Status Bar: located at the very bottom of the screen displays brief
information about activating features within the worksheet area.
Sheet Tabs: appear above the status bar displaying the name of the
worksheets.
20
The easiest way to edit the content of a cell is to select the cell and then retype
the entry. The new entry replaces the old contents. Many other ways of editing
data shall be seen through practical sessions.
6.8 Aligning Data
By default, any text entered in Excel is automatically aligned to the left and any
value or number is aligned to the right. To change the default alignment, you
can use the alignment buttons on the formation tool bar.
6.9 Formulas
In Excel, one of the powerful features is formulas. A formula is an equation that
is used to perform calculations on data in a worksheet. We can use formula to
perform Mathematical, Statistical & Date/Time operations on a single value or
a set of values by using operators.
The cells in which formulas are stored display the result of the calculation and
not the formula itself.
In excel, a formula starts with an equal (=) sign and should be followed by the
operation to be performed. We can use any number of operators in single
formula. MS-Excel evaluates the formula according to the order of precedence
of the operators as seen in this table.
() Bracket 1
^ Exponentiation 2
*, / Multiplication, 3
division
+, - Addition, subtraction 4
& Concatenation 5
UNIT 7
7.0 MS –ACCESS
The database is an organized collection of data related to a particular topic or
purpose. The database serves as a base from which desired information can be
retrieved; many meaning conclusions can be drawn. A database stored
electronically has distinct advantages over a manually organized system. It can
be maintained in a computer by using a database management system (DBMS).
DBMS is an application that enables us to maintain data in a database.
Maintaining data involves storing, organizing and retrieving the data.
MS-Access is a relational database management system (RDBMS) that is used
to store and manipulate large amounts of information. The extension name of
MS-Access file is .mdb
7.1 Database Objects
A database object is any aspect of a database that you can use to manipulate or
hold data. MS Access uses “objects" to help the user list and organize
information, as well as prepare specially designed reports. When you create a
database, Access offers you Tables, Queries, Forms, Reports, Macros, and
22
Modules. Databases in Access are composed of many objects but the following
are the major objects −
Tables
Queries
Forms
Reports
1. Tables: Store database data in rows (records) and columns (fields). Every
row represents a record while each piece of information in a record is
called field. For example, Student table is made up of these fields as:
admission no; student name, address, phone no; etc. while every row
containing information about a particular student known as his/her
record. Here is the guide in designing tables:
Each field must have a unique name, and data type.
Tables contain fields or columns that store different kinds of data,
such as a name or an address, and records or rows that collect all the
In Access, you can use the graphical query by example facility or you
can write Structured Query Language (SQL) statements to create your
queries.
You can define queries to Select, Update, Insert, or Delete data.
You can also define queries that create new tables from data in one or
3. Forms: are used as interfaces for users to enter, view and modify data in
a table.
Forms are used for entering, modifying, and viewing records.
The reason forms are used so often is that they are an easy way to
When you enter information into a form in Access, the data goes
exactly where the database designer wants it to go in one or more
related tables.
4. Reports: are used to present data from tables or Queries in a format of
our choice. i.e. the printable form of the table or query or form.
You can view a report on your screen before you print it.
If forms are for input purposes, then reports are for output.
23
Anything you plan to print deserves a report, whether it is a list of
names and addresses, a financial summary for a period, or a set of
mailing labels.
Reports are useful because they allow you to present components of
your database in an easy-to-read format.
Access offers you the ability to create a report from any table or
query.
You can use macros to open and execute queries, to open tables, or to
print or view reports.
You can also run other macros or Visual Basic procedures from within
a macro.
Data macros in web apps can also be stand-alone objects that can be
called from other data macros or macro objects.
each action.
Modules are far more powerful, and are essential if you plan to write code
for a multi-user environment, because macros cannot include error
handling.
Modules can be standalone objects containing functions that can be
called from anywhere in your application, or they can be directly
24
The data type determines the kind of the values that users can store in
any given field.
Each field can store data consisting of only a single data type.
Here are some of the most common data types you will find used in a typical
Microsoft Access database.
In Access 2013, we now have two data types — short text and long text.
In previous versions of Access these data types were called text and
memo.
The text field is referred to as short text and your memo field is now
called long text.
25
Uses of Network
It allows you to share resources such as printers, scanners, etc.
You can share expensive software and database among network users.
o
network.
o
MAN is a high-speed network that spreads over a large geographical area such
as a metro city or town. It is set up by connecting the local area networks using
routers and local telephone exchange lines. It can be operated by a private
company, or it may be a service provided by a company such as a local
telephone company.
Examples of MAN:
o Cable TV Network
o Telephone service provides that provide high-speed DSL lines
o IEEE 802.16 or WiMAX
o Connected fire stations in a city
o Connected branches of a school in a city
26
Advantages of MAN:
o Less Expensive: It is less expensive to set up a MAN and to connect it to
a WAN.
o High Speed: The speed of data transfer is more than WAN.
o Local Emails: It can send local emails fast.
o Access to the Internet: It allows you to share your internet connection,
and thus multiple users can have access to high-speed internet.
o Easy to set up: You can easily set up a MAN by connecting multiple
LANs.
o High Security: It is more secure than WAN.
8.2 Internet
communication is split up into a number of packets that are sent from source to
destination.
28
File Transfer Protocol: With the help of FTP (File Transfer Protocol), a user can
transfer documents, text files, multimedia files, program files, etc., from one
o
device to another.
Hypertext Transfer Protocol: It is used to move a hypertext between two or
more computers or other devices. Links can be made using HTML tags and can
o
REFERENCES
1. www.javatpoint.com/
2. www.tutorialspoint.com/
3. Etc.
29