CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.
-
Upload
lilian-gibbs -
Category
Documents
-
view
229 -
download
2
Transcript of CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.
![Page 1: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/1.jpg)
CS101- Computer Fundamentals
Lecture No. 1Shamyl Bin Mansoor
![Page 2: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/2.jpg)
Introductions
Instructor: Shamyl Bin Mansoor
Students: ?
![Page 3: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/3.jpg)
Motivation
![Page 4: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/4.jpg)
What can you do with computers?
![Page 5: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/5.jpg)
What can you do with computers?
![Page 6: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/6.jpg)
![Page 7: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/7.jpg)
![Page 8: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/8.jpg)
![Page 9: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/9.jpg)
What is the Course About?
-Understanding the basic functionality of a computer- How to make machines solve your problems- How to logically go about tackling a problem
![Page 10: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/10.jpg)
Course PolicyCourse (75% of 100 marks)One Hour Tests : 30 %Quizzes : 10 % Course Assignments : 9.0 %Class Participation : 1.0%Final Exam : 50% Lab (25% of Total 100 marks)Lab Assignments : 70 %Project : 30 %
![Page 11: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/11.jpg)
Books• Introduction to Computers by Peter Norton, 6th or latest
edition• C How to Program by Deitel & Deitel• Object-Oriented Programming in C++ by Robert Lafore
• NOTE: Check course outline for details on the particular Editions
![Page 12: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/12.jpg)
Course Pre-Requisites• Pre-requisites: None• Credit Hours:
– 2+1– 3 hourly lectures per week– 1 hour lab !!!!
![Page 13: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/13.jpg)
Policies
• Must write your name and Registration No in quizes/assignments
• No late work will be accepted• Ask questions; participate actively in class
![Page 14: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/14.jpg)
Policies
• You are responsible for what is covered in class – even if you don’t show up
• Deficiency in attendance may lead to termination or relegation
• You are encouraged to help each other with your homework assignments – but you must turn in your own work
• If you are found to be cheating, you will fail at least the assignment. Both copier and copyee get a zero!
![Page 15: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/15.jpg)
Policies
• If you have any learning disabilities or special needs, please let me know in advance through email or personal meeting
• Check LMS regularly for messages• Quizzes are unannounced
![Page 16: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/16.jpg)
Contacts
• Office: • SMART Lab, Graduate Research
ComplexPhone 051- 90852173
• Office Hours: • Tuesday 0900 – 1100 hrs• email:• [email protected]• Exceptional meeting:
Give me an email and get time.
![Page 17: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/17.jpg)
Course Web Page
• http://lms.seecs.edu.pk/
![Page 18: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/18.jpg)
Course Contents
• PART 1- Computer Fundamentals
– Basic Definitions of Computer Fundamentals– Computer Hardware– Computer Software– Computer Networks– World Wide Web
![Page 19: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/19.jpg)
Course Contents
• PART 2- C Language– Data type and operators– Statements and Control Flow– Declarations and Initialization– Functions– Basic I/O– Arrays– Strings– Pointers– Union and Bit-wise operators– Structures and Files
![Page 20: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/20.jpg)
Be Creative!
![Page 21: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/21.jpg)
![Page 22: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/22.jpg)
![Page 23: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/23.jpg)
![Page 24: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/24.jpg)
![Page 25: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/25.jpg)
![Page 26: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/26.jpg)
![Page 27: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/27.jpg)
![Page 28: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/28.jpg)
Video!
http://www.youtube.com/watch?v=3vApOQb8A8k&feature=related
![Page 29: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/29.jpg)
Today’s Lecture• Computer
– Hardware – Software
• Computer Architecture• Software Categories
• System Software• Application Software
• Introduction to ‘C’ Language• History• Evolution• Justification
• Development Environment of ‘C’
![Page 30: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/30.jpg)
What is a ComputerWhat’s a
Computer?
![Page 31: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/31.jpg)
A Computer is…
•A digital electronics device that combines hardware and
software to accept the input of data, process and store the data,
and produce some useful output.
Tangible componentsElectronic
instructions
![Page 32: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/32.jpg)
Components of a Computer System
![Page 33: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/33.jpg)
Digital Technology
![Page 34: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/34.jpg)
Digital Electronics
•Digital electronics devices store and process bits electronically.
–A bit represents data using 1’s and 0’s–Eight bits is a byte – the standard grouping
in digital electronics–Digitization is the process of transforming
information into 1’s and 0’s
For more on digitization:http://en.wikipedia.org/wiki/Digitization http://electronics.howstuffworks.com/analog-digital.htm http://www.hardwaresecrets.com/article/317
![Page 35: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/35.jpg)
Knowledge Worker
•Today’s well-equipped knowledge worker makes use
of many digital technologies.
![Page 36: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/36.jpg)
Producing Valuable Information
•Data: items stored on a digital electronics device: numbers, characters, & sounds
•Information: data organized and presented in a manner that provides value to the user: documents,
graphs ,music, photos
![Page 37: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/37.jpg)
Digital Technology Metrics
Kilo, Mega, Giga, what comes next?
![Page 38: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/38.jpg)
•Key Terms–Desktop computer–Notebook computer–Netbooks–Tablet PC–Smart phone
Personal Computer (PC)
Examples:www.hp.com
www.apple.com www.microsoft.com/windowsxp/tabletpc
![Page 39: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/39.jpg)
Synchronize
•When you synchronize or sync two digital
devices, you update the files shared between the
devices so that both copies are up-to-date
and identical.
![Page 40: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/40.jpg)
Computing Platform
•A computer’s type, processor, and operating
system define its computing platform.
![Page 41: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/41.jpg)
P O W
E R
Types of General Purpose Computer Systems
Personal Computer (PC)
WorkstationPowerful, multiprocessor, special-purpose PC
Server Powerful, multiprocessor computers that provide services to many users
over a network
Supercomputer Most powerful with fastest processing
speeds
![Page 42: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/42.jpg)
Special-Purpose Computers
•A kiosk is a computer station that provides the public with
specific and useful information and services.
The processor and operating system used in the Kindle allow users to connect to the Kindle store, where books, magazines, newspapers, and blogs are available to download for a fee.
![Page 43: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/43.jpg)
Special-Purpose Mobile Devices
•The “desk” has to be wherever you are. The trend of digital electronic devices to become smaller and increasingly powerful has fully supported the move
to an increasingly mobile workforce
![Page 44: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/44.jpg)
Mobile Media
•Movies, television shows, and other video clips can be
downloaded from the Web or transferred from DVD to the
devices and displayed on the 3.8-inch screen.
![Page 45: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/45.jpg)
A little bit about programming languages
![Page 46: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/46.jpg)
Evolution of programming languages
• The lack of portability between different computers led to the development of high-level languages—so called because they permitted a programmer to ignore many low-level details of the computer's hardware
• What does portability mean?
• So what is a high level language vs. low level language?
![Page 47: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/47.jpg)
How people used to program
• Machine Language….. Damn! It was difficult• Assembly Language
– Required too much user involvement– To much to remember – Less semantic
• C Language – B Language.. Bell Labs (1969)
• Was very limited (not surprising)– Improved to C Language (1969-1989)
• Much more powerful language!– Is a compiled language
![Page 48: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/48.jpg)
![Page 49: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/49.jpg)
ANSI C(a.k.a ‘C’) language
![Page 50: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/50.jpg)
There are two main categories of software
• System software:– <examples>
• Application Software – <examples>
![Page 51: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/51.jpg)
Tools of the trade
• Editor• Interpreter and Compilers • Debuggers
– What is a bug? So what could be a debugger??
![Page 52: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/52.jpg)
Computer Bug• The First Computer Bug
Moth found trapped between points at Relay # 70, Panel F, of the Mark II Aiken Relay Calculator while it was being tested at Harvard University, 9 September 1947.
• The operators affixed the moth to the computer log, with the entry: "First actual case of bug being found".
• They put out the word that they had "debugged" the machine, thus introducing the term "debugging a computer program".
Ref: http://www.jamesshuggins.com/h/tek1/first_computer_bug_large.htm
![Page 53: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/53.jpg)
![Page 54: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/54.jpg)
Where is your software or program?
![Page 55: CS101- Computer Fundamentals Lecture No. 1 Shamyl Bin Mansoor.](https://reader036.fdocuments.net/reader036/viewer/2022081514/56649ee95503460f94bfb00c/html5/thumbnails/55.jpg)