Download presentation
Presentation is loading. Please wait.
Published bySydney Conley Modified over 9 years ago
1
Introduction to Programming Lecture No. 1
2
Program “A precise sequence of steps to solve a particular problem”
3
Alan Perlis – Yale University: “It goes against the grain of modern education to teach children to program. education to teach children to program. What fun is there in making plans, What fun is there in making plans, acquiring discipline in organizing acquiring discipline in organizing thoughts, devoting attention to detail thoughts, devoting attention to detail and learning to be self-critical? “ and learning to be self-critical? “
4
Critical Skills – Analysis – Critical Thinking – Attention to Detail
5
Design Recipe To design a program properly, we must: – Analyze a problem statement, typically expressed as a word problem expressed as a word problem – Express its essence, abstractly and with examples examples –Formulate statements and comments in a precise language precise language –Evaluate and revise the activities in light of checks and tests checks and tests
6
– PAY ATTENTION TO DETAIL – These skills are useful for anybody anybody – All assignments in this course should follow the these should follow the these guidelines guidelines
7
Computers are STUPID
8
Humans are even more…….
9
Think Reuse
10
Area of the Ring Area of Inner Circle ____ Area of Outer Circle = Area of the Ring
11
Think Reuse Think Reuse Think User Interface Think User Interface Comments liberally Comments liberally
12
What is the probability that she gets exactly three letter right i.e. three exactly three letter right i.e. three Letters into their correct envelopes. Letters into their correct envelopes.
13
Logical Error Lewis Carol: “Through the Looking Glass” “Twas brillig, and the slithy toves Did gyre and gimble in the wabe “
14
Course Policy Policy for the distribution of marks and examination is as follows Assignments 15% Assignments 15% Group discussion 5% Group discussion 5% Midterm 35 % Midterm 35 % Final 45 % Final 45 %
15
Books Deitel & Deitel :– C++ How to Program Deitel & Deitel :– C++ How to Program Kernighan and Ritchie:- Kernighan and Ritchie:- The C Programming Language The C Programming Language
16
Course Objectives Objectives of this course are three fold 1.To appreciate the need for a programming language 2.To introduce the concept and usability of the structured programming methodology 3.To develop proficiency in making useful software using the C language
17
Course Contents To achieve our first two objectives we will be discussing Basic Programming constructs and Basic Programming constructs and building blocks building blocks Structured programming Structured programming Structured flowcharts, pseudo-code Structured flowcharts, pseudo-code
18
Course Contents History of C Language History of C Language Variables and expressions in C Variables and expressions in C Control structures and functions Control structures and functions Arrays and Pointers Arrays and Pointers Dynamic memory Allocation Dynamic memory Allocation
19
Course Contents File handling File handling Structures and Unions Structures and Unions Flavor of Object oriented programming Flavor of Object oriented programming
Similar presentations
© 2025 SlidePlayer.com Inc.
All rights reserved.