You are on page 1of 5

LAB-OUTLINE

Programming Fundamentals-II
CS02102
Fall-2019

Instructor:
Mr. Imran Khalil muhammad.khalil1@se.uol.edu.pk

Course Description:
This course aims to strengthen the problem solving and programming skills of students
with an assumption that they are already well familiar with basic data types, arithmetic
operations, conditional and repetition control structures. They are trained to modularize
their programs using functions, write efficient programs using pointers and dynamic
memory allocation, enhance the capacity of language by defining their own data types
using structures and store the data and access it between different runs of a program using
file handling.
Course Relevance:
This lab includes C++ which is designed to build:
Games/game engines
Desktop apps
Mobile apps
LAb Objectives:
The lab mainly aims to achieve the following objectives:
 An ability to understand the problem clearly

Lab Outline (PF-II)


1
 An ability to analyze the problem in detail
 An ability to design algorithms
 An ability to convert algorithm into program/code
 An ability to think and understand the flow of instructions while implementing
algorithm
Lab Duration:
The course lecture will be held two times a week and class duration for each lab will be
180 minutes.
Lab Style:
The course will be held in programing labs.
Text Book:
1- C How to Program, 5/E (Harvey & Paul) Deitel & Deitel, ISBN-10: 0132404168
ISBN-13: 9780132404167 Publisher: Prentice Hall
Reference:
2- Computer Science: A Structured Programming Approach Using C++ by Behrouz
A. Forouzan, Richard Gilberg
3- C++ Programming by DS Malik
4- Statring out with C++ by Tony Gaddis
Additional Course Requirement:
In addition to the objectives of this course, students are expected to have a compiler of
C++ e.g. Dev-C++ installed in their computers in order to practice different concepts
taught in the course.
Lab Contents:

Week # 1 Introduction to Programming


Lab Introduction
Pre-Requisite’s Assessment with brief revision
Introduction to arrays
1-Dimentional(1-D) Array, 1-D Array’s memory representation
Linear Search
Binary Search

Lab Outline (PF-II)


2
Week # 2 Arrays
Selection Sort Assignment: 01
Bubble Sort
2-Dimentional(2-D) Array, 2-D Array’s memory representation
2-D Array declaration and initialization
Practice questions of 2-D array
Week # 3 Functions
Assignment: 01
Function Introduction Submission
Difference between built-in functions
and user-defined functions e.g. sqrt(); Quiz: 01, 20 Minutes
Function Prototype
Functions Definition
Calling of a Function
Local variables, Global variables
Functions Scope
Week # 4 Functions
Passing Arguments and Returning Values from Functions
Formal Parameters and Actual Parameters
Passing Arguments by Value & Reference
Inline Functions
Default Arguments
Week # 5 Functions
Arrays as parameter Assignment: 02
Function Overloading
Recursion
Week # 6 Structures
Assignment: 02
Structure Introduction Submission
Data members concept
Initialization of structure, Structures variable/Object
Input & Output
Structure with functions
Week # 7 Structures
Structure with functions Quiz: 02, 20 Minutes
Structure with arrays
Week # 8 Structures
Nested Structures
Lab Outline (PF-II)
3
Structures practice questions
Week # 9 Mid Term Examination
Week # 10 Pointers
Pointers Introduction Assignment: 03
Pointers variables
Pointers with arrays
Pointers Arithmetic
Week # 11 Pointers
Relationship between arrays and Assignment: 03
pointers, Array of pointers Submission
Pointers with functions
Pointers with structures
Week # 12 Pointers
Dynamic Memory Allocation (new, delete)
Delete an array pointer (delete[])
Week # 13 Strings
String Introduction Assignment: 04
character string Quiz: 03, 20 Minutes
string input and output
Arrays of string
String functions (Concatenation, Copy, Comparison, Finding
Substring, etc.)
Week # 14 Strings
Assignment: 04
Strings with pointers Submission
Pass string to functions
String getline() function
String with structures
Week # 15 File Handling
File Handling Introduction Quiz: 04, 20 Minutes
File operations (open, read, write and close)
Text Files vs Binary Files
Week # 16 File Handling
Difference between Random and Sequential file access. seekg(),
seekp(), tellg(), tellp() functions.
Revision

Lab Outline (PF-II)


4
Lab Marks Distributions:

Criteria
Quizzes 5%

Assignments 5%

Lab Exercise 10 %
Total 20%

Attendance Requirements:
 You are expected to attend all lectures, seminars, tutorials, and lab sessions or any
other classroom activity announced. Where you fail to attend classes, you cannot
expect the lecturer to brief you on what you have missed. You are responsible for
your attendance, not the academic staff. Attendance at tutorials and lab sessions
will be strictly monitored, and failure to attend will be taken into account.
 Note: Minimum of 75% Attendance in lab sessions are required for a student to
sit in the Final-Term examination.
 Etiquette: Please keep all cell phones turned OFF during class. If your activities
during class are deemed disruptive, you will be asked to leave.
Instructor: Checked by TAI:
Ms. Imran Khalil Mr. Abid Bashir

Lab Outline (PF-II)


5

You might also like