Introduction To Computers & Programming in C: MR - Vivek Parashar Assistant Professor (ASET)
Introduction To Computers & Programming in C: MR - Vivek Parashar Assistant Professor (ASET)
Programming in C
(BTC\BTI\BTE\BTM\BTB-105)
by
Mr.Vivek Parashar
About Myself
I am Vivek Parashar Assistant Professor (ASET) AmityUniversity,Gwalior.
Amity is ranked as number one Private University in India in survey of various Media houses.
Amity is having around 80000 Students. Amity is having more than 1500 Acre of campuses. Nearly 100% placement in all courses
Course Content
System : 4 Hour
Unit 2: Programming in C and its basics : 6 Hour Unit 3: Fundamental Features in C ( loops , switch, break, storage type & Preprocessor) : 9 Hour Unit 4: Arrays and Functions with recursion: 7 Hour
References
Kernighan & Ritchie, C Programming Language, The (Ansi C Version), PHI, 2nd Edition. J. B Dixit, Fundamentals of Computers and Programming in C, Laxmi Publication 2nd Edition. P.K. Sinha and Priti Sinha, Computer Fundamentals, BPB publication, 4th Edition,2003.
5
Grading Guidelines
S. No Evaluation Component
1. 2. 3. 3. 4. Home Assignment Quiz Class Test Attendance End-Semester Examination Total
Weight (%)
5 5 15 5 70 100
6
Course Objective
To acquire the basic knowledge of computer system and its parts(H/W & S/W) To familiarize with various important features of procedure oriented programming language i.e. C
Learning Outcome
By the end of this course, students will be able to: Identify & define various types of Computer systems and there parts. Describe the working principal of computer and the data used by computer system and various number systems. Understand the Procedural programming methodology its pros and concerns . Understand how to programme efficiently .
8
My Promise to you
I will treat you with respect I will be available for questions (after class, during office hours) I will arrive prepared to teach I will try to be engaging and helpful I will grade you fairly and objectively
University Expectations
Come to class on-time (especially during exams) Turn in work on-time Do all work independently (except group work) Follow Rules of Conduct and Academic Behavior Standards as detailed in the Student Regulations. Take responsibility for your own learning!
10
My Expectations
Treat each other with respect Work hard Ask if you have questions!
11
Unit 1
12
Discussion Questions
What defines a computer:
What is the simplest definition of a computer you can come up with?
13
What Is A Computer?
A computer is an electronic device, operating under the control of instructions (software) stored in its own memory unit, that can accept data (input), manipulate data (process), and produce information (output) from the processing. Generally, the term is used to describe a collection of devices that function together as a system.
14
History of Computers
Computer" was originally a job title: it was used to describe those human beings (predominantly women) whose job it was to perform the repetitive calculations required to compute such things as navigational tables, tide charts, and planetary positions for astronomical use.
16
17
Abacus
The abacus was an early aid for mathematical computations which was used in 300 B.C. by the Babylonians A modern abacus consists of rings that slide over rods
18
19
Napier's Bones
In 1617 an eccentric (some say mad) Scotsman named John Napier invented logarithms, which are a technology that allows multiplication to be performed via addition. The logarithm values were carved on ivory sticks which are now called Napier's Bones.
20
21
Slide Rule
The slide rule,(based on Napier fundamental) first built in England in 1632 and still in use in the 1960's by the NASA engineers of the Mercury, Gemini, and Apollo programs which landed men on the moon.
22
23
24
Pascal's Pascaline
In 1642 Blaise Pascal, at age 19, invented the Pascaline as an aid for his father who was a tax collector. Pascal built 50 of this gear-driven one-function calculator
25
26
A 6-digit model for those who couldn't afford the 8 digit model
27
Stepped Reckoner
After a few years after Pascal, the German Gottfried Wilhelm Leibniz (co-inventor with Newton of calculus) managed to build a four-function (addition, subtraction, multiplication, and division) calculator that he called the stepped reckoner
28
Punched Cards
In 1801 the Frenchman Joseph Marie Jacquard invented a power loom that could base its weave (and hence the design on the fabric) upon a pattern automatically read from punched wooden cards, held together in a long row by rope. Descendents of these punched cards have been in use ever since
29
30
Difference Engine
By 1822 the English mathematician Charles Babbage was proposing a steam driven calculating machine the size of a room, which he called the Difference Engine
In 1833 he designed Analytic Engine could store numbers ,calculating mill used punched metal cards for instructions,powered by steam,accurate to six decimal places.
31
A small section of the type of mechanism employed in Babbage's Difference Engine [photo 2002 IEEE]
32
Mark I
The first computer Mark I built by Harvard and IBM in 1944. This was the first programmable digital computer made in U.S. It was not a purely electronic computer. As it was constructed out of switches, relays, rotating shafts, and clutches. The machine weighed 5 tons, incorporated 500 miles of wire, was 8 feet tall and 51 feet long, and had a 50 ft rotating shaft running its length, turned by a 5 horsepower electric motor.
33
34
36
Generations of Computer
History of computer is divided in to five generations Each generation is characterized by major technological development Fundamental changes in terms of o Size o Cost o Power o Efficiency o Reliability
37
ENIAC - 1946
Electronic numerical integrator & computing first fully electronic digital computer built in the U.S. Created at the University Of Pennsylvania by J. Presper Eckert (1919 - 1995) and John W. &Mauchly (1907 - 1980) ENIAC weighed 30 tons contained 18,000 vacuum tubes Cost a paltry $487,000
39
ENIAC-1946
40
IBM
Punched-card processing equipment 1953 - the 701
IBMs first stored program computer Scientific calculations
The high level languages like FORTRAN, COBOL, BASIC etc. were used as the languages by the computer. Example of Computers: IBM 1400 and 7000 series, General Electric 635 , PDP 1, NCR & RCA produced small transistor machines.
44
First Transistor
Uses Silicon In 1948 John Bardeen, Walter Brattain & William -Shockley discovered the "transfer resistor"; later labeled the transistor. won a Nobel prize
45
Third Generation
1965-1974
Integrated circuits replaced transistors. Inspite of their smaller size they were capable to perform better than transistors. For data input and output operations monitors and keyboards replaced the punched cards. For external storage magnetic disks were used. Sophisticated operating systems, which were capable of handling several jobs concurrently were used.
46
More advanced high level languages like PASCAL were used. Example of computers:1971 - 4004 First microprocessor All CPU components on a single chip 4 bit
1974 - 8080
Intels first general purpose microprocessor
47
Integrated Circuits
Third Generation Computers used Integrated Circuits (chips). Integrated Circuits are transistors, resistors, and capacitors integrated together into a single chip 48
The use of special software for maintaining large data bases became popular. The application software for micro computer essentially became popular in this generation. Example of computers:1975, 801 minicomputer project (IBM) RISC Berkeley RISC I processor 1986, IBM commercial RISC workstation product, RT PC.
50
Looking in Future
Grid Computing Nano Technology Quantum Computing DNA Computing Cloud Computing
52
Inventors/inventions
Conrad Zuse Z1 Computer
Description of events
First Programmable Computer
1944
H.Aiken & G.Hopper Harvard Mark 1 Computer 1946 J.P.Eckert & J.W.Mauchly ENIAC 1 1947/48 J.Barden,W.Brattain & W. Shokley The Transister
Harvard Architecture
18000 Vacuum tubes This invention greatly Effected the history of computer
53
Cont
Year
1951
Inventors/inventions
John Presper Eckert & John W. Mauchly UNIVAC Computer
Description of events
First commercial computer & able to pick presidential winners
1953
1954
54
Cont.
Year
1958 1962 1964
Inventors/inventions
Jack Kilby & Robert Noyce The Integrated Circuit Steve Russell & MIT Spacewar Computer Game Douglas Engelbart Computer Mouse & Windows ARPAnet Intel 1103 Computer Memory
Description of events
Otherwise known as 'The Chip' The first computer game invented. Nicknamed the mouse because the tail came out the end. The original Internet. The world's first available dynamic RAM chip.
55
1969 1970
Cont..
Year
1971
Inventors/inventions
Faggin, Hoff & Mazor Intel 4004 Computer Microprocessor
Description of events
The first microprocessor.
1971
1973 1974/75 1976/77
Cont.
Year
1978
Inventors/inventions
Dan Bricklin & Bob Frankston VisiCalc Spreadsheet Software Seymour Rubenstein & Rob Barnaby WordStar Software IBM The IBM PC - Home Computer Microsoft MS-DOS Computer Operating System
Description of events
Any product that pays for itself in two weeks is a surefire winner. Word Processors.
1979
1981
From an "Acorn" grows a personal computer revolution From "Quick And Dirty" comes the operating system of the century.
57
1981
Cont..
Year
1983
1984
1985 SERIES
58
59
THANK YOU
60