Programming
Fundamentals
Lecture No. 1
By.
Mughal Yar M
How to use language
Programming principle, design, structure
analysis etc
Programming skills are very important
Use C vehicle to run this course
Environment C++ only use C part
C++ OOP/ try to understand Procedural
Programming
Books
Deitel & Deitel :– C++ How to Program
Kernighan and Ritchie:-
The C Programming Language
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
Course Contents
To achieve our first two objectives we
will be discussing
Basic Programming constructs and
building blocks
Structured programming
Structured flowcharts, pseudo-code
Course Contents
History of C Language
Variables and expressions in C
Control structures and
functions
Arrays and Pointers
Course Contents
File handling
Structures and Unions
Flavor of Object oriented programming
Alarm
Welcome to visit me in my office (next to 102)
anytime any discussion.
5 min late
“attendance will mark as late”
10 min late
“will not allowed in class”
No compromise on deadlines.
Hard copy will submitted for each work.
Only two person will be in group.
Disturbance will not allowed during lecture.
Recap
Marks Distribution
Assignment 15%
Lab Work and CP 10%
Mid Term 20%
Project 25%
Final Exam 30%
Course title is “Programming
Fundamentals”
Programming
“A precise sequence of steps to
solve a particular problem”
Know sets of activities.
Purpose of these activities solve given problem
Fundamentals
“Ground rules/ Nitty-gritty”
Alan Perlis – Yale University:
“It goes against the grain of modern
education to teach children to program.
What fun is there in making plans,
acquiring discipline in organizing
thoughts, devoting attention to detail
and learning to be self-critical? “
Computer Programming
Telling it what to do
Artificial mechanism for telling computer
“what to do”
Chosen this mechanism easy for
programmer (people)
First hard thing about programming is to
learn.
Become comfortable, accept these artificial
mechanism.
Why Programming is Important
Develops Analytical and Problem Solving abilities.
Creative activities and provides us a mean to
express abstract ideas.
It is fun and is much more than a vocational skill.
We will learn many skills that is very important for
all professions.
Critical reading, Analytical thinking, Creative
synthesis
What Skills Are Needed
Paying attention to detail
Think about the reusability
Think about user interface
Understand the fact the computers are
stupid
Comment the code liberally
Design Recipe
To design a program properly, we must:
Analyze a problem statement, typically
expressed as a word problem
Express its essence, abstractly and with
examples
Formulate statements and comments in a
precise language
Evaluate and revise the activities in light of
checks and tests
PAY ATTENTION TO DETAIL
These skills are useful for
anybody
All assignments in this course
should follow the these
guidelines
Points to remember
Hence major points to keep in mind are
Don’t assume on the part of the users
User Interface should be friendly
Don’t forget to comment the code
Pay Attention to Detail
Program, Program and Program, not just writing
code, but the whole process of design and
development.
Computers are
STUPID
Humans are even
more…….
Think Reuse
Think Reuse
Think User Interface
Comments liberally
Logical Error
Syntax Error