Download presentation
Presentation is loading. Please wait.
Published byPierce Turner Modified over 9 years ago
1
Introduction to Programming Lecture No. 1
2
Program “A precise sequence of steps to solve a particular problem”
14
Critical Skills – Analysis – Critical Thinking – Attention to Detail
15
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
16
– 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
17
Computers are STUPID
18
Humans are even more…….
19
Think Reuse
20
Area of the Ring Area of Inner Circle ____ Area of Outer Circle = Area of the Ring
21
Think Reuse Think Reuse Think User Interface Think User Interface Comments liberally Comments liberally
22
Logical Error Lewis Carol: “Through the Looking Glass” “Twas brillig, and the slithy toves Did gyre and gimble in the wabe “
23
Course Policy Quizzes :10 % One Hour Tests : 30 % Lab :5% Assignments :5% Project : 5 % Final Test :45%
24
Books C++ by Robert Lafore C++ by Robert Lafore 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
25
Books Reference Books(very important part) Reference Books(very important part) –Learning C by Neill Graham –C++, How to Program by Deitel & Deitel –Thinking in C++ by Bruce Eckel –www.cprogramming.com www.cprogramming.com –www.cplusplus.com www.cplusplus.com –www.howstuffworks.com www.howstuffworks.com –www.whatis.com www.whatis.com
26
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
27
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
28
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
29
Course Contents File handling File handling Structures and Unions Structures and Unions Flavor of Object oriented programming Flavor of Object oriented programming Sockets Sockets
30
Books Text Books Text Books –C++ by Robert Lafore –How to Program – C by H.M. Dietel / P.J. Deitel –The C Programming Language by Brian W. Kernighan, Dennis M. Ritchie
31
Policies Bring your own calculator, pen paper etc.. Bring your own calculator, pen paper etc.. You will not be allowed to borrow anything from anyone during any test You will not be allowed to borrow anything from anyone during any test Must write your name and reference number (Merit No or Regn No) in a test Must write your name and reference number (Merit No or Regn No) in a test No late work will be accepted (unless arrangements have been made in advance) No late work will be accepted (unless arrangements have been made in advance) Ask questions; participate actively in class Ask questions; participate actively in class You are allowed to talk to instructor only You are allowed to talk to instructor only
32
Policies You are responsible for what is covered in class – even if you don ’ t show up 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 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 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 / test and perhaps the entire class If you are found to be cheating, you will fail at least the assignment / test and perhaps the entire class
33
Policies If you have any learning disabilities or special needs, please let me know in advance through email or personal meeting If you have any learning disabilities or special needs, please let me know in advance through email or personal meeting Check your email regularly for messages Check your email regularly for messages Quizzes are unannounced Quizzes are unannounced
34
Contacts Office: Office: Faculty Block (Room # 101) Phone 051- (yet to come) Faculty Block (Room # 101) Phone 051- (yet to come) Office Hours: Office Hours: Monday 1000 – 1200 hrs Monday 1000 – 1200 hrs email: email: dr.raihan@niit.edu.pk dr.raihan@niit.edu.pk dr.raihan@niit.edu.pk Exceptional meeting: Exceptional meeting: Give me an email and get time.
35
Course Web Page http://www.niit.edu.pk/ ~ dr.raihan http://www.niit.edu.pk/ ~ dr.raihan For CR: Please make a Yahoo/msn or Google group! For CR: Please make a Yahoo/msn or Google group! Collect and send me the email addresses of all students. Collect and send me the email addresses of all students.
36
A Useful Thought Human beings are such small creatures, aren’t they? Human beings are such small creatures, aren’t they? So don’t be too worried about everything So don’t be too worried about everything Treasure every moment, do what you wish to do Treasure every moment, do what you wish to do Broaden your view, broaden your mind, Broaden your view, broaden your mind, Don’t worry too much about things that are bothering you, Don’t worry too much about things that are bothering you, Do treasure your life, live safely and peacefully Do treasure your life, live safely and peacefully Always be happy to welcome the coming of the new day,,,, enjoy the sunshine.. Always be happy to welcome the coming of the new day,,,, enjoy the sunshine.. Always look at the brighter side of things….. Always look at the brighter side of things…..
37
Questions ? Thank You Thank You The illiterate of the 21st century will not be those who cannot read and write, but those who cannot learn, unlearn, and relearn. --Unknown
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.