0% found this document useful (0 votes)
16 views

Course Outline Introduction to Programming

The document outlines the course 'Fundamentals of Programming' for Fall 2018, taught by Dr. Saif ur Rehman, with no prerequisites and a focus on C++. It includes a detailed course outline covering topics such as data types, decision making, loops, functions, arrays, pointers, structures, and file handling, along with a grading policy. The course aims to teach students fundamental programming concepts using C++ and prepares them for Object Oriented Programming.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

Course Outline Introduction to Programming

The document outlines the course 'Fundamentals of Programming' for Fall 2018, taught by Dr. Saif ur Rehman, with no prerequisites and a focus on C++. It includes a detailed course outline covering topics such as data types, decision making, loops, functions, arrays, pointers, structures, and file handling, along with a grading policy. The course aims to teach students fundamental programming concepts using C++ and prepares them for Object Oriented Programming.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Semester: Fall 2018

Course Information

Course Title: Fundamentals of Programming


Lab (Yes)
Credit hrs:3
Prerequisites For this Course: None
This Course is Prerequisite For: Object Oriented Programming
Instructor: Dr Saif ur Rehman
e-mail : Office:
Network Address: Consultation hours:
Mon~Sat: 11am ---12am
Text Book:

Reference Book(s):
1. Schaum’s Outlines Programming with C++, 2nd edition by John R. Hubbard
2. Schaum’s Outlines Programming with C, 2nd edition by Byron S. Gottfried
3. C++ How to Program, 5th edition, By Dietel & Dietel
4. Let Us C, 5th edition, by Yashavant P. Kanetkar
Objective of course:

To teach students the fundamental concepts of programming using C++

Course Outline:
C++ Programming basics, data types, (relational, binary, shift and bitwise) operators. Decision
making through if, else if, :? and switch statements. Loops using while, do while and for.
Functions: arguments, passing value by reference, default arguments, overloading, recursion,
returning by reference. Arrays: passing array to function, n-dimensional arrays, bubble sort,
character array, c-string. Pointers: address and reference, void pointer. Pointer and array, pointer
arithmetic, pointer and functions, structures: structure within structure. File handling in C: binary
mode & ASCII mode.Writing structure on file.
Lecture Plan:

Week(s) Topic

2 Installing and using Dev C++ Compiler. Running Hello word program.
Basic Concepts: variable, function, arguments, body, statements, #include
as preprocessor directive, return 0, void, cout as a standard output stream.
<< operator, using directive, Header Files, comments, Integer Variable,
Definition and declaration, Variables Names, keyword, Integer constant,
endl manipulator,
1 C++ basic data types, bool, char, short, int, long, float, double. ASCII
Table, Escape Sequence, Input with cin, Solving quadratic equation,
Calculating Roots, sum average and product of 6 numbers
1 Using setw() manipulator, Datatypes range and overflow, type
conversion, type cast, % operator, Compact operator, += , -= , *= , /= ,
%= , ++ and -- operators, Linker and Compiler Concepts
1 Relational Operators: <, >,==, !=, >=,<=. Number Systems
(hexadecimal, decimal, octal, binary) . Bits and Bytes. Logic Gates and
Bitwise Operators (OR |, AND &, XOR ^, NOT ~), Left Shift << and

Page 1 of 2
right shift >> operators, Logical Operators (AND &&, OR ||, NOT !).
1 Decision making in C++: Using if statement, check even/odd number,
min of three numbers, using else, using nested if, using else if, using
compound statements, using switch statements, using ? : statements
Midterm Exam

2 Loops: while loop, print count 1 to100, sum of first n numbers, using
break in a loop, Fibonacci Numbers, Using do…while loop, using for
loop, Calculate Factorial, Calculate Prime Number, Write number in
reverse, using continue statement in a loop,
2 Functions: declaration, definition, arguments, return tupe, calling.
Calculate Permutation and Combination, Arguments passing by value
and passing by reference. Returning more than one value, local and
Global Variables. Default Arguments, Inline Function, Function
Overloading, Recursion. Factorial using recursion, returning by reference,
Calculate GCD and LCM. xy using recursion.
2 Arrays and Strings: Defining reading and writing an array. Calculate
Average, Out of Bound Error, 1D, 2D and 3D Arrays, Passing 1D, 2D,
3D array to function, Calculate Square of a Matrix, Bubble Sort,
Character Array, C-string , using cin.get(), copy a string, Arrays of
strings, Dot Product of two vectors, standard deviation, determent and
reverse of a 3x3 matrix
1 Pointers: address and reference, pointer variable, void pointer, pointer and array,
pointer arithmetic, Pointer and function, pointer to string constant, copying a
string using pointers. The const modifier and pointers.

1 Structures: members of structures, using a structure and reading/writing to


structure members. Initialization, Saving a person’s information in a
structure.
1 File Handling in C: what is a file. File types (ASCII, Binary), Using
fopn(), file opening modes. Using putc(), getc(), fclose(). A file copy
program. Writing reading string using fputs(), fgets(). Writing and
Reading Structure on a File.
1 Final Exam + Revision

Grading Policy:

S/No Title Marks

1 Quizzes 5

2 Attendance 5

3 Assignments 10

4 Midterm Exam 30

5 Final Exam 50

Total Marks 100

Page 2 of 2

You might also like