8-Week C-Programming Lesson Plan
Course Outcomes
1. Understand and apply fundamental C programming syntax and semantics.
2. Write and debug modular C programs using loops, conditional statements, and
functions.
3. Develop and manipulate arrays, strings, and structures in C.
4. Utilize pointers and dynamic memory management for efficient programming.
5. Implement basic file handling and structured data storage.
Week 1: Introduction to C and Basic Syntax (Enhanced)
Theory Topics:
C language introduction and program structure
Data types, variables, and type casting
Operators: arithmetic, assignment, logical, relational
Input/output operations
Intro to compiling and debugging
Hands-On:
Precision calculator for float operations
BMI calculator using logic and type casting
Mixed data input with formatting
Temperature conversion with menu-based control
Mini Project:
Digital Unit Converter
Week 2: Control Structures and Decision Making
Theory Topics:
Conditional logic: if-else, nested if
Switch-case structure
Logical operators and expressions
Hands-On:
Even/odd and sign checker
Grade evaluator using nested if
Menu-driven calculator using switch
Mini Project:
Student Grading System
Week 3: Loops and Iterations
Theory Topics:
Looping structures: for, while, do-while
Nested loops and control statements (break/continue)
Hands-On:
Multiplication table
Fibonacci sequence (iterative)
Factorial calculator
Armstrong number checker
Mini Project:
Prime Number Generator
Week 4: Arrays and Strings
Theory Topics:
One-dimensional and two-dimensional arrays
String operations and built-in functions
Hands-On:
Max/min in array
Matrix addition and subtraction
Vowel and word count in strings
String reversal
Mini Project:
Word Counter Tool
Week 5: Functions and Recursion
Theory Topics:
Function definition and calling
Parameter passing: by value and recursion
Scope and lifetime
Hands-On:
Arithmetic functions
Recursive factorial and Fibonacci
Prime number checker function
Swap with/without temp variables
Mini Project:
Number Analyzer
Week 6: Pointers and Dynamic Memory Allocation
Theory Topics:
Pointer basics and arithmetic
Pointers and arrays
Dynamic memory: malloc, calloc, free
Hands-On:
Pointer-based variable swapping
Dynamic arrays
Pointer-based array sum
Mini Project:
Dynamic Student Database
Week 7: Structures and File Handling
Theory Topics:
Structures and nested structures
File operations: read/write (text and binary)
Typedef and file I/O
Hands-On:
Employee structure creation
Store and retrieve structure data in files
Read and analyze text file content
Mini Project:
Employee Record System
Week 8: Advanced Topics and Final Integration
Theory Topics:
Command-line arguments
Header files and modularization
Standard libraries and error handling
Hands-On:
Argument-based calculator
Custom header files
Split program into modules (.c and .h)
Mini Project:
Library Management System
Recommended Textbooks and References
Programming in ANSI C by E. Balagurusamy
The C Programming Language by Brian W. Kernighan and Dennis M. Ritchie
Head First C by David Griffiths and Dawn Griffiths
Online Resources: GeeksforGeeks, TutorialsPoint, and CProgramming.com