This repository contains all C++ assignments completed during BS-SE at FAST NUCES Lahore.
It covers two courses:
- Programming Fundamentals (PF)
- Object-Oriented Programming (OOP)
The assignments progress from basic selection structures to advanced object-oriented design concepts such as dynamic memory management, operator overloading, aggregation, and composition.
| # | Folder | Course | Topics | Questions |
|---|---|---|---|---|
| 01 | Assignment-1(Basics & Selections) | Programming Fundamentals | Selection Structures · if/else · ternary | 8 |
| 02 | Assignment-2(Loops & Patterns) | Programming Fundamentals | for · while · do-while · Patterns | 8 |
| 03 | Assignment-3(Functions & Arrays) | Programming Fundamentals | Functions · Integer Arrays · Sorting | 6 |
| 04 | Assignment-4(Character & Arrays) | Programming Fundamentals | Character Arrays · 2D Arrays · Encryption | 5 |
| 05 | OOP-Assignment-1(Dynamic Memory & 2D Arrays) | OOP | Dynamic Memory · Pointers · File Handling | 3 + Bonus |
| 06 | OOP-Assignment-2(Operator Overloading) | OOP | Operator Overloading · Rule of Three | 3 |
| 07 | OOP-Assignment-3(Aggregation & Composition) | OOP | Aggregation · Composition · OOP Relationships | 1 |
PF Assignment 1 → Basics and Selections — if/else, ternary, arithmetic
PF Assignment 2 → Loops and Patterns — patterns, Pascal triangle, prime numbers
PF Assignment 3 → Functions and Arrays — sorting, merging, simulation
PF Assignment 4 → Character and 2D Arrays — encryption, matrix ops, pattern matching
OOP Assignment 1 → Dynamic Memory and 2D Arrays — pointers, file I/O, deep copy
OOP Assignment 2 → Operator Overloading — custom types, Rule of Three
OOP Assignment 3 → Aggregation and Composition - OOP Relationships
// Programming Fundamentals
✔ Selection Structures (if / else if / else / ternary)
✔ Loops (for / while / do-while / nested)
✔ Functions and Modular Design
✔ Integer Arrays and Sorting Algorithms
✔ Character Arrays and C-Strings
✔ 2D Arrays and Matrix Operations
✔ Pattern Matching and Encryption
// Object-Oriented Programming
✔ Dynamic Memory Allocation (new / delete)
✔ Pointer-Based Arrays and Deep Copy
✔ Rule of Three
✔ Operator Overloading
✔ Composition vs Aggregation
✔ File Handling and Data Processing
✔ Memory-Safe Programming| Course | Instructor | Semester |
|---|---|---|
| Programming Fundamentals | Ms. Anosha Khan | Fall 2025 |
| Object-Oriented Programming | Ma'am Hina Iqbal | Spring 2026 |
- Problem Solving
- Algorithmic Thinking
- Memory Management
- Object-Oriented Design
- File Handling
- Pointer Manipulation
- Clean and Modular Programming
- Debugging and Testing
Part of my learning journey at FAST NUCES BS-SE
Created by Syntrojex