You are on page 1of 39

Lecture 01: Introduction CS 101: Introduction to Computing

Introduction

Dr. Sajid Anwar

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

Instructor
Email: sajid@giki.edu.pk
Faculty of Computer Science and Engineering
Office: G-17
Office Hours:
Monday 0230-0430
Tuesday 0230-0430
Thursday 0010 – 1200 and 0230-0430

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

Course TA
• Ms. Amna Arooj
– Graduate Lab, FCSE
• Incase of any ambiguities, feel free to contact me or the TA

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

Books
Dietal and Dietal, “How to Program C++”
3rd Edition

J J Parson and Dan Oja, “Computer Concepts”


7th Edition

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

Course Description and Outcomes

• This course focuses on a breadth-first coverage of computer science discipline,


introducing computing environments, general application software, basic
computing hardware, operating systems, desktop publishing, Internet, software
applications and tools and computer usage concepts; Introducing Software
engineering and Information technology within the broader domain of computing,
C/C++ Language.

• Course Learning Outcomes


• CLO1: Knowledge of primary computer hardware and software components
and their inherent relationship.
• CLO2:The fundamental concepts of computer programming by applying
mathematical concepts and operations.
• CLO3:. Ability to analyze and design modular program designs with
elementary constructs of a programming language.

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

Dishonesty, Plagiarism in Quizzes, Assignments


• Say no to plagiarism
• Being a very fundamental course, invest your energies and time
with deep interest.
• A solid understanding in this course is very crucial for future
subjects and researches

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

Attendance
• Students are required to attend 100% classes of courses
registered and can not abstain from even a single class.

• For circumstances beyond their control, students must apply


for leave on prescribed Leave Application form.

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

Tentative Evaluation Breakdown

Assignments (5) 10
Quizzes (5) 10
Term Project (1) 15
Midterm (1) 20
Final (1) 45

Total 100

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

Course Execution
• 2 lectures of one hour every week
• 1 lab of three hours every week (CS 101 L)
• Course contents will be shared via CMS

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

Motivation
• Only 1 of 2 programming courses
out of approx. 40 courses

• Core of core of computer science

• Excellent Programming = Excellent


chances of good job

• Remember practice makes a


person “perfect”.
– Same goes for programming.

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

C++ Programming Language

English, Urdu, Hangul etc.

Programming is a way to
“provide task specific
instruction to the computer.
As the task changes, a
different set of instructions
are required”.

Examples; searching a
record in a pre-recorded
list, sorting of numbers in a
vector

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

Consider the scenario when both parties do not


understand each other’s language, and a 3rd person
acts as a translator. This analogy will be useful
when discussing machine language and natural
languages.

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

Course Outline
Part I: 05 Lectures
Computers & Applications, History of Computing, Introduction to Hardware
and Software, Peripheral Devices, Data Representation, Number
Systems, Conversion Methods, ASCII / Unicode, Microprocessors,
Memory, Storage Devices……….

Part II: 25 Lectures


Algorithms: Flowcharts & Pseudocode, Assignment Operators, If Selection
Statement, If… Else Selection Statement, Nested Control Structures,
switch Multiple-Selection Statement,
………………………………………………….……….. Passing Arrays to
Functions, Searching Arrays, Pointers, Library Functions and Header
Files

Details at : http://192.168.1.121
Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi
Lecture 01: Introduction CS 101: Introduction to Computing

Computers Today

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

Services Sector
(finance terminology)

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

A Tool for Communication


Social Networking

Searching
e-mail

Blog
Chat

Content Sharing
Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi
Lecture 01: Introduction CS 101: Introduction to Computing

A Tool for Entertainment


Multimedi
a

Games
Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi
Lecture 01: Introduction CS 101: Introduction to Computing

Computer Revolution !
Mars
Rover

Flight
Simulator
Google Wearable Computer
Servers

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

Computer
• We know how to use a computer
• We have an idea where it stands today
• YOU have to contribute towards its future !
– Architecture
• CPU cores, Memory speed and capacity
(synchronization), secondary storage speed, power
consumption
– Induce intelligence into machines

• Now let’s look at what it is and the modest beginnings from


where it evolved !

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

AI is the new Electricity

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

History of Computer

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

What is a Computer (-1-)

• A computer is a machine that


– inputs (takes in) facts and information (known as data*)
– then processes (does something to or with) it
– can also store data
– afterwards it outputs, or displays, the results for you to see

* Data is all kinds of information, including,


pictures, letters, numbers, and sounds

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

What is a Computer (-2-)

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

What is a Computer (-3-)

• The defining feature of modern computers which


distinguishes them from all other machines is that they can
be programmed
– a list of instructions (the program) can be given to the computer e.g.,
– add one number to another
– move some data from one location to another
– send a message to some external device, etc
– it will store them (in memory)
– and carry them out (execute) some time in future
– Usually in the same order in which the instructions were given

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

History of Computer (-1-)

• The first use of the word "computer" was recorded in


1613
– referring to a person who carried out calculations, or
computations !

• The word continued to be used in that sense until the


middle of the 20th century
– before modern electronic computers were developed

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

History of Computer (-2-)


• The history of the modern computer begins with two separate
technologies
– Automated Calculation
– Programmability

• Early computers were mechanical calculating devices such


as
– Abacus, 3000 B.C
– Slide rule

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

History of Computer (-3-)

Chinese Abacus: for performing arithmetic processes

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

History of Computer (-4-)

Slide Rule: for performing multiplication, division, computing


roots, logarithms, trigonometric functions
Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi
Lecture 01: Introduction CS 101: Introduction to Computing

History of Computer (-5-)


• ENIAC - Electronic Numerical Integrator And Computer -
was the first general-purpose electronic computer developed
around 1946
• operated at 5 kIPS [thousand instructions per second]
» Today's desktops can perform 10000+ MIPS
• weighed 30 tons (Equals weight of an average Asian elephant)
• size was roughly 8.5 x 3 x 80 feet
• contained around 5 million hand-soldered joints
• consumed 150 kW of power; enough to dim the lights of
Peshawar when it was run!
– Input was given from an IBM card reader
– An IBM card punch was used for output

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

History of Computer (-6-)

Working
on,
rather
‘inside’ ,
ENIAC

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

History of Computer (-7-)

IBM Punch Card: Programs and data were punched by hand or


a key-punch-machine and read into a card reader

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

Four kind of Computers


1 Microcomputers
– These are the most widely used and the fastest-growing type of
computers. There are two major categories:
– Desktop Computers are small enough to fit on top or along the
side of a desk and yet are too big to carry around.
• Personal Computers
• Workstations
– Portable Computers are small enough and light enough to move
easily from one place to another.
• Laptops: 10-16 pounds in weight
• Notebooks: 5-10 pounds in weight
• Subnotebooks: 2-6 pounds in weight
• Personal Digital Assistants: Also known as palmtop
computers and handheld PCs. They combine pen input,
writing recognition and communication capabilities

32
Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi
Lecture 01: Introduction CS 101: Introduction to Computing

2 Minicomputers
 They are desk size machines.
 They fall between microcomputers and mainframe computers
in their processing speeds and data-storing capabilities.
 They might be used for research or monitoring a particular
manufacturing process.
 Smaller companies have been using minicomputers for their
data processing needs such as accounting/billing systems.

33
Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi
Lecture 01: Introduction CS 101: Introduction to Computing

3 Mainframe Computers
 These are large computers.
 They are capable of great processing speeds and data-storing.
 They are used by large organizations – business, banks,
government agencies etc – to handle millions of transactions.
 For example, airline companies use mainframe computers to
process information about millions of travelers.

34
Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi
Lecture 01: Introduction CS 101: Introduction to Computing

4 Supercomputers
 The most powerful type of computer is the supercomputer.
 These machines are special, high-capacity computers used by
very large organizations.
 For example, NASA uses supercomputers to track and control
space explorations.
 Supercomputers are also used for oil exploration, simulations
and worldwide weather forecasting.

35
Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi
Lecture 01: Introduction CS 101: Introduction to Computing

Do you know GIKI has a super computer?


• The facility consists of 160 CPU Cores,
• 1024 GPU Cores
• 640 GB RAM
For details: http://www.giki.edu.pk/Documents/HPCManual.pdf

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

The future of computers predicted in the past

• I think there is a world market for maybe


five computers.
-- Thomas Watson, chairman of IBM, 1943

• Computers in the future may weigh no


more than 1.5 tons.
-- Popular Mechanics, 1949

• There is no reason anyone would want a


computer in their home.
--Ken Olson, CEO, Digital Equipment Corp., 1977

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

By the way, Einstein (1879-1955) never said this 


Cherne may have been the actual source of a popular quotation, often misattributed
to Albert Einstein: "The computer is incredibly fast, accurate, and stupid. Man is
incredibly slow, inaccurate, and brilliant. The marriage of the two is a force beyond
calculation."[1]
https://en.wikipedia.org/wiki/Leo_Cherne

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi


Lecture 01: Introduction CS 101: Introduction to Computing

References
• http://en.wikibooks.org/wiki/Basic_Computing_Using_
Windows
• http://en.wikipedia.org/wiki/Computer
• http://www.cs.dartmouth.edu/farid/teaching/cs4/summ
er.08/notes/historyofcomputing/
• http://ftp.arl.mil/~mike/comphist/eniac-story.html
• http://ed-thelen.org/comp-hist/BRL-e-h.html
• http://en.wikipedia.org/wiki/Moore's_law
• http://en.wikipedia.org/wiki/Motherboard

Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, Topi

You might also like