Course Outline Introduction to Programming
Course Outline Introduction to Programming
Course Information
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:
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.
Grading Policy:
1 Quizzes 5
2 Attendance 5
3 Assignments 10
4 Midterm Exam 30
5 Final Exam 50
Page 2 of 2