You are on page 1of 4

PAF- KARACHI INSTITUTE OF ECONOMICS & TECHNOLOGY

Course Title: Introduction to Computer Programming


Credit Hours: 2+1

Pre-requisite(s): None

Teaching Faculty: Muhammad Mazher Iqbal

Email Address: mazher.iqbal@pafkiet.edu.pk

Faculty Contact Hours: 10 Hrs/week


____________________________________________________________________________________
Course Introduction: This course is developed for 1st year Electrical, Mechatronics and Avionics
Engineering students. Students taking this course will be exposed to introductory theoretical as well as
practical concepts of Computer Programming.
Course Objectives: This course introduces computer programming and problem solving methodologies
using C language. Topics include language syntax, data types, program organization, algorithm design,
decision and logic control structure.
Learning Outcomes: On completion of course students should be able to:
1. Describe the major components in problem solving for a computer program.
2. Apply decision and repetition structures in program design.
3. Write and incorporate methods and functions to demonstrate program competence.
4. Define variables and arrays used in program methodology.
5. Implement input and output to access and process files.
6. Apply their knowledge in practical system design examples
7. Understand the logical realization of real world problems.
Text Book: Engineering Problem Solving in C by Delores M. Etter. (4th edition)
Reference Books: C How To Program By Deitel & Deitel (7th Edition)
Web Resources:

http://www.programmingsimplified.com/c-program-examples
http://www.sanfoundry.com/c-programming-examples/

Page 1 of 4

Session
No.

LECTURE PLAN

6
7

8
9

Topics
Introduction to Computer System
Introduction to Software
Getting started with C
What is a Program?
Algorithm Design
Simple C program
Keywords, Variables and Constants
Types of Constants
What are keywords?
Variable Types
Variable Declaration
Initializing Variables
Comments and nested Comments
White spaces
Structure of C programs
Your First C Program
Simple Output and Input
Printf output function
Escape Sequences
Scanf input function
getch() input function
Operators and Precedence
Arithmetic Operators
Operator Precedence
Remainder Operator
The Increment / decrement Operator
Selection Structures
if statement
else statement
Nested If else statement
Logical Operators and !(Operators)
Switch Statement
Break statement
Switch versus if-else
Example Programs
Iterative Statements
while Loop and for Loop
Multiple statements in Loops
The do-while Loop
Nested Loops

Reference material
/ Reading assignment

Chapter 1

Chapter 2

Chapter 2

Chapter 2

Chapter 3

Chapter 3
Chapter 3

Chapter 3
Chapter 3

Page 2 of 4

10

11

12

13

14

15

16

17

18

19

20

21
22
23

The break and continue Statements


Example Programs
Functions
Predefined Functions
Top-Down Design
The Function Declaration
Function Definition
Function Call
Function And Variable Scope
Passing values to function
Returning a value from a function
Variable Scope (Local variables & Global Variables)
Forward declaration
Recursion
Header Files
Function Overloading
Example Programs
Functions with Output Parameters
Returning multiple values from function
Example Programs
Arrays
Array declaration & initialization
Accessing Arrays
Array as function arguments
Multidimensional Arrays
Example Programs
Bubble Sort
Strings
String declaration & initialization
String Library Functions
Pointers
Reference operator (&)
Dereference operator (*)
Structures
Structure Declaration
Accessing Structure
Functions Whose Return Values Is A Structured
Array of structure
Dynamic Data Structures
Malloc, calloc, realloc and free operators
Pointers and arrays
Pointer to structure

Chapter 3

Chapter 4

Chapter 4

Chapter 4

Chapter 4

Chapter 5

Chapter 5

Chapter 7

Chapter 6

Chapter 7

Chapter 7

Hourly-I
Hourly-II
GSS

Page 3 of 4

Student Assessment Information Sheet


A. Breakdown of Assessment

Description

Mark Distribution (%)

Final Exam

50%

Hourly Tests (2)

20%

Assignments

15%

Quizzes

10%

GSS / Class Performance

05%

TOTAL

100%

B. Planned Schedule of Assessments


No.

Description

Issue Date

1
2
3

Quizzes
Hourly Test
Assignments
TOTAL

Surprised
Week 5 &11
Periodic

Submission
Date
2 days after

Return Date
Expect it at the end of Chapter
Week 7, 13
To be discussed

C. Remarks
1. The students whos absentees from the class exceed four (4) shall be dropped from the course without any warning.
[ The name of the student shall disappear from the attendance roll. ]
2. Other than the planned schedule of assessments as mentioned in Sec. B above, there shall be no make-up test of any
kind.
3. All assessed components [50% sessional marks] shall be returned to the students.
4. No claim for any correction, review or scrutiny shall be entertained one week after the return of answer scripts.

Anas reported that the Messenger of Allah (sal Allahu alaihi wa sallam) said, "Help your brother,
wronging or wronged." A man said, "Messenger of Allah, I can help him if he is wronged but tell
me how I can help him if he is wronging?" He (sal Allahu alaihi wa sallam) said, "You can restrain
him - or prevent him - from injustice. That is helping him." [Sahih Bukhari]

Page 4 of 4

You might also like