Programming Fundamentals _Theory
Programming Fundamentals _Theory
Credit Units: 3
Prerequisites: None
Course Objectives:
The course is designed to familiarize students with the basic structured programming skills. It emphasizes
upon problem analysis, algorithm designing, and program development. The objective of this course is to
provide the student with the fundamental knowledge and skills to become a proficient C/C++programmer.
After this course, students would be able to;
● Divide a problem into its logical set of components.
Text Book:
1. The C Programming Language, 2nd Edition by Brian W. Kernighan, Dennis
M.Ritchie
2. Object-Oriented Programming using C++ by Tasleem Mustafa
Reference Books:
1. Object-Oriented Programming in C++by Robert Lafore,3rdEdition
2. C++ How to Program by Deitel &Deitel ,5th Edition
3. C How to Program, 7th Edition by Paul Deitel & Harvey Deitel
4. Problem Solving and Program Design in C++, 7th Edition by Jeri R.Hanly & Elliot B.Koffman
Level of Learning
CLOs GAs
(Bloom’s Taxonomy)
CLO-01
State the fundamental concepts of structured programming
C1 2
along with problem solving techniques and analytical
thinking.
CLO-02
Demonstrate an ability to write, debug and execute C3 2
programs in C++
CLO-03
Apply loops, conditional statements, arrays, pointers,
C3 4
functions for evaluating and solving computing
problems.
Course Week Wise Plan with CLOs Mapping
C++ Basics
Keywords,
A sample C++ program explained. Basic I/O.(cout, cin)
3 Quiz #01 CLO-02
Displaying a message, Formatting a Message,
Variables, Integer Data type. Assignment Operator. Arithmetic
Operators,
Solution Program
Conversion of mathematical formula to C++ formula. Operator
precedence., Constants, Assignment
4 CLO-02
Data Types, #02
Float data. Arithmetic operations in Float. Type casting.
Character Data types. Operation on character Datatype
Control Structures I (Selection) Increment and Decrement Operator,
Relational Operators, Logical Operators and Logical Expressions,
5
Selection: if statement,
CLO-03
Control Structures II (Selection) Cont…
6 else-if statement, if-else statement, Conditional Operator, CLO-03
Repetition I
7 While loop, Syntax, Flow Chart, Examples, Dry Run of code. While
CLO-03
with Multiple conditions.do-while loops,
8 Repetition II
For loop, Syntax, Flow Chart, Examples, Dry Run of code. Variations
CLO-03
in For Loop.
9 Mid-Semester Examination
Repetition III
10 Nested loop, Switch statement Break and Continue Statement
CLO-03
Functions I
Definition, Role of functions, Call and Return. Library functions
(Math)
11 Quiz #02 CLO-03
User defined functions. Defining a function, Prototype, Calling a
function, Passing arguments to functions,
Returning values from functions,
Functions II
Scope rules (local variables, global variables and static variables)
12 CLO-03
Call by value,
Call by reference
Pointers
Fundamentals of pointers
17 CLO-03
Pointer expressions and arithmetic Pointers and Arrays
Pointers and Functions
18
Final Semester Examination
Course outlines Theory work:
1. Algorithms
a. Definition
b. Properties
2. Flow charts
a. Types
b. Advantages and disadvantages
3. Pseudo code
a. Rules
b. Designing Algorithm with Pseudo code
c. Advantages and disadvantages of Pseudo code
5. Operators
a. Assignment operators
b. Arithmetic operators
c. Conditional Operators
d. Relational operators
e. Logical Operators
f. Basic Program constructions
6. Control statements
a. Conditional statements
b. Iteration statements
c. Jump statements
7. Arrays
a. Array accessing and declaration
b. One and multi-dimensional arrays
c. Passing values to the Array, with reference and value
d. Character arrays
8. Functions
a. Declaration, calling and definition
b. Passing values to function
9. Library Functions
a. System Defined functions
b. Trigonometric functions
c. Arithmetic functions
d. String functions
e. Conversion functions
10. Structures
a. Declaring Structures and their variables,
b. Accessing structure members,
11. Pointers
a. Data type renaming
b. Declaring pointers
c. Calling a function by reference
Course learning outcomes will be achieved through a combination of the following teaching strategies.
● PowerPoint presentations
● Presentations
● Final examination
Course learning outcomes will be achieved by using the following assessment tasks and activities.