📘 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:
-
Define what programming is.
-
Explain the importance of programming in solving real-world problems.
-
Understand the basics of the C++ programming language.
-
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
🔎 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
-
Define programming in your own words.
-
Who developed C++?
-
What is the purpose of
coutin C++? -
Write a program to display: Welcome to Programming.