Introduction to High-Level Programming

State University of Zanzibar (SUZA)

BSc Computer Science - Undergraduate | Language: C++

๐Ÿ“š

Lectures

TopicMaterialFormat
Control Flow (if, else, switch, loops) Control Flow PDF
Functions & Procedures Functions PDF
Arrays & Strings Arrays & Strings (Lecture 4) PDF
Strings (Advanced) C++ Strings PDF
Pointers Pointers (Lecture 5) PDF
Pointers (Slides) Pointers Presentation PPT
๐Ÿ“–

Reference Materials

๐Ÿ”€

Flowcharts & Algorithms

๐Ÿงช

Practical Lab Sessions

Each lab includes exercises from course materials, plus extra practice from LeetCode and HackerRank to build problem-solving skills. Problems are marked by difficulty: [Easy], [Medium], [Hard].
LabTopicExercisesLink
Lab 1 Introduction, Output & Variables 24 exercises - Hello World, patterns, I/O, calculations, digit manipulation TXT
Lab 2 Operators & Expressions 16 exercises - Precedence, type casting, formulas, reverse integer, palindrome number TXT
Lab 3 Control Flow (if, else, switch) 20 exercises - Grades, BMI, leap year, calculator, Rock Paper Scissors, Roman numerals TXT
Lab 4 Loops (for, while, do-while) 24 exercises - Patterns, Fibonacci, primes, Armstrong, Happy Number, Collatz TXT
Lab 5 Functions & Procedures 25 exercises - Pass by value/reference, overloading, recursion, Power of Two/Three TXT
Lab 6 Arrays 24 exercises - Sorting, searching, Two Sum, rotate, move zeroes, hourglass sum TXT
Lab 7 Strings 24 exercises - Palindrome, anagram, Caesar cipher, compression, CamelCase TXT
Lab 8 Pointers 23 exercises - Pointer arithmetic, dynamic memory, arrays, function pointers TXT
Lab 9 File Handling 19 exercises - Read/write files, CSV, phone book, bank transactions, log analyzer TXT
Lab 10 Problem Solving & Recursion 24 exercises - Recursion, Tower of Hanoi, merge sort, Tic-Tac-Toe, N-Queens TXT
โœ๏ธ

Practical Sessions (Previous)

๐Ÿ’ก

Programming Exercise Sheets

๐Ÿ“‹

Question Banks

๐Ÿ“

Assignments & Projects

๐Ÿ“„

Tests & Exams

๐Ÿ“–

Course Topics

  • ▸ Introduction to Programming
  • ▸ Variables and Data Types
  • ▸ Input and Output Operations
  • ▸ Operators and Expressions
  • ▸ Control Flow (if, else, switch)
  • ▸ Loops (for, while, do-while)
  • ▸ Functions and Procedures
  • ▸ Arrays and Strings
  • ▸ Pointers (C++)
  • ▸ File Handling
  • ▸ Recursion
  • ▸ Problem Solving Techniques
๐Ÿ’ป

Getting Started

Compile and Run C++ Programs

g++ hello.cpp -o hello
./hello

Online Practice Platforms

  • LeetCode - Algorithm problems sorted by difficulty
  • HackerRank C++ - C++ specific challenges
  • OnlineGDB - Online C++ compiler (no installation needed)