Course Content
Health Promotion and Education
Diploma in Business Administration

📘 Lesson Notes: Introduction to This Lesson 

🏫 Course: Computer Science – Semester One

📍 Module: Introduction to Programming

📅 Week: 1

🧑‍🏫 Lecturer: Mohamed Bangura


🎯 Learning Objectives

By the end of this lesson, students should be able to:

  1. Define what programming is.

  2. Explain the importance of programming in solving real-world problems.

  3. Understand the basics of the C++ programming language.

  4. Write and run a simple C++ program.


📖 Lesson Content

1. What is Programming?

Programming is the process of writing instructions (called code) that a computer can understand and execute to perform specific tasks.

  • A program is a set of instructions written to solve a problem.

  • Programming helps automate tasks, solve mathematical problems, control machines, and build applications.


2. Introduction to C++

C++ is a high-level programming language developed by Bjarne Stroustrup.
It is widely used because:

  • It is fast and efficient.

  • Supports object-oriented programming.

  • Can be used to build system software, applications, and games.


3. Structure of a Simple C++ Program

 
#include <iostream>
using namespace std;

int main() {
cout << "Hello, World!";
return 0;
}

🔎 Explanation

  • #include <iostream> → Allows input/output functions.

  • int main() → The starting point of every C++ program.

  • cout << → Displays output on the screen.

  • return 0; → Ends the program successfully.


📝 Class Activity

  • Write a program that displays your name and favorite subject.


🎓 Assignment

  • Research and list five real-life applications of C++.

  • Submit your findings on the LMS before the next class.


📌 Summary

  • Programming = Writing instructions for a computer.

  • C++ is powerful, fast, and widely used.

  • A program always starts with main().


✅ Quiz Questions

  1. Define programming in your own words.

  2. Who developed C++?

  3. What is the purpose of cout in C++?

  4. Write a program to display: Welcome to Programming.

Exercise Files
Sample Lecture NOte Files.pptx
Size: 1.19 MB