Programming for Problem Solving Lab

100112P

4 modules · 37 topics

Experiment set 1C Programming Basics & Control Flow11 topics
  • Area of geometrical shapes
  • flowchart
  • data types
  • type casting
  • Student Grading and Classification using if-else ladder and switch-case
  • Prime numbers 1 to N
  • Fibonacci sequence using while/for loops
  • Max/min via Linear Search
  • average of elements
  • Matrix Multiplication
  • Transpose
Experiment set 2Pointers, Functions & Data Management10 topics
  • Reverse string
  • count vowels/consonants using pointers
  • Factorial
  • GCD comparison
  • Swap values
  • update array via Call by Value/Reference
  • Employee Payroll System using Structures and Unions
  • sizeof comparison
  • Write/read student records
  • display and keyword search in text files
Experiment set 3C++ OOP Fundamentals5 topics
  • Bank Account class with private balance
  • deposit/withdraw/display
  • String class with Default/Parameterized/Copy constructors and Destructor
  • Object count tracking
  • friend function comparing private data of two classes
Experiment set 4Advanced OOP11 topics
  • Single
  • Multiple
  • Multilevel
  • Hierarchical
  • Hybrid/virtual inheritance with arithmetic operations
  • Abstract Class Shape with pure virtual draw()
  • function overloading for area
  • operator overloading for complex addition
  • Exception handling try/catch/throw for Division by Zero/Negative Stock Input
  • Function and class templates: max of two values
  • Pair class for any data type
Lab