CC-301-–-Programming-Fundamentals-Course-outline-cslearnerr.com_
CC-301-–-Programming-Fundamentals-Course-outline-cslearnerr.com_
General Information
Prerequisite(s) NIL
Statement
This course is designed to develop concepts of programming language using C++, which is
important for higher level programming. After completing this course, the students will be able to
make small and medium programs.
CC 301: Programming Fundamentals
Credit Hours: 3
Contact Hours: 3
1. COURSE OUTLINE:
This course provides an introduction to computer programming. It discusses low-level and high-
level computer Languages and gives a revision of computer fundamentals. It outlines the essential
features of C++ programming language: data types, arrays, strings, records and pointers. It also
gives a detailed overview of essential programming features like control structures, repetition
statements, arrays, file I/O and recursion. It will discuss pointers and its use in data manipulation.
2. Weekly Plan
Week Contents
Week 1 • Introduction to Programming Languages
• History of C++
• Basic elements of C++
▪ C++ character set
▪ C++ words
✓ Reserve words
✓ User define words/identifier
▪ Rules for identifier
Week 2 • Basic Data Types
▪ Int
▪ Float
▪ Char
▪ Modifiers
✓ Long
✓ Signed
✓ Unsigned
✓ Double
✓ Long Double
✓ Short
Week 3 • Numbers
▪ Integer Numbers
▪ Real Numbers
• Types of identifiers
▪ Constant identifier
▪ Variable identifier
• Statement
▪ Single statement
• Compound statement Program
Week 4 • General Structure of C++ Program
• Output Statement
• Input Statement
• String/message
▪ Char/Char identifier
• Assignment Statement
• Operators
▪ Arithmetic Operators
▪ Relational Operators
▪ Logical Operators
Week 5 • Expression
• Initialization Statement
• Increment Operator (Prefix & Postfix forms)
• getche () function
• getch () function
• Escape sequences
Week 6 • Comments in C++ Program
• Pre-processor Directives
• Difference between Declaration & Definition
• Arithmetic Assignment Expression
• Priority of Operators
• Conversion of Mathematical formula into C++ expression
Week 7 • Control structures/Decision Control structure
▪ Transfer of control Statements (TOCS)
▪ Repetitive Control structure/statements (Loops)
• Conditional TOCS
▪ Single alternative if statement
✓ Nested if statement
▪ Double alternative if statement (if-else statement)
✓ Nested if-else statement
Week 8 • Conditional operator/Ternary Operator (? :)
• Switch statement/Multiple Branching statement
▪ Nested Switch statement
Week 9 • Manipulators
▪ endl manipulator
▪ setw manipulator
• Continue Statement
• Break Statement
• Go to Statement
Week 10 • Loop
▪ Types of Loop
▪ Fixed loop (count control loop)
▪ Non-fixed loop (event control loop)
▪ Fixed loop/for loop
▪ Variations in for loop
✓ Defining variable in for loop
✓ Multiple initializations in for loop
✓ Multiple inc/dec expressions in for loop
✓ Initialization outside for loop
✓ Inc/dec expression inside for loop
✓ No testing (infinite loop)
✓ Output statement inside for loop
✓ Nested for loop
Week 11 • Non-fixed loop (event control loop)
▪ While loop (pre-tested loop)
▪ Do while loop (post-tested loop)
▪ Nested while & do-while loop
Week 12 • Arrays
• Types of Array
▪ One-dimensional array
▪ Two-dimensional array
Week 13 • Sorting and searching
▪ Bubble sort
▪ Linear search
• Strings (array of characters)
Week 14 -15 • Function
• Types of Function
▪ Built-in function
▪ User-defined function
▪ Parts of user defined function
▪ Function with values and no return
▪ Function with values and return
▪ Passing values from a function
▪ Passing arguments to a function
Week 16 • Pointers Basic Concepts
• Structure
▪ Specifying structure
▪ Defining structure variable
▪ Accessing structure members
3. Resources
o TEXT BOOK
1. Deitel and Deitel, “C++ How to Program”, 7th Edition
2. Robert Lafore, Object-Oriented Programming in C++, 3rd Edition
o REFERENCE BOOKS
1. Behrouz A. Forouzan, “A Structured Programming Approach Using C++”