1-Month Fast-Track Course
Intensive 4-week program. Daily 60–90 minute sessions. Covers fundamentals through OOP and file handling.
Week 1: Foundations
Setup, Variables, Data Types, Input/Output, Operators
📅 Daily Session Plan
Day 1: Install g++/VS Code, write first "Hello World" (90 min) Day 2: Variables & data types — int, float, char, string (75 min) Day 3: Arithmetic & assignment operators (60 min) Day 4: Input with cin, formatted output with cout (75 min) Day 5: if/else and nested conditions (90 min)
💡 Key Concepts & Analogies
Think of variables like labeled boxes — each box holds one type of item. An int box holds whole numbers, a float box holds decimals, a char box holds a single letter. cin is like a microphone (takes input), cout is like a speaker (gives output).
Code Example
week1_example.cpp
#include <iostream>
using namespace std;
int main() {
string name;
int age;
cout << "Enter your name: ";
cin >> name;
cout << "Enter your age: ";
cin >> age;
cout << "Hello, " << name << "!" << endl;
cout << "In 5 years, you'll be " << age + 5 << endl;
if (age >= 18) {
cout << "You are an adult." << endl;
} else {
cout << "You are a minor." << endl;
}
return 0;
}Output:
Enter your name: Alice Enter your age: 20 Hello, Alice! In 5 years, you'll be 25 You are an adult.
✏️ Practice Problems
- Write a program that converts Celsius to Fahrenheit.
- Create a simple calculator that takes two numbers and an operator (+, -, *, /).
- Write a program to check if a number is even or odd.
- Create a program that calculates the area of a rectangle from user input.
- Write a program that finds the largest of three numbers entered by the user.
🚀 Mini Project: Simple Bill Calculator
Build a restaurant bill calculator that takes item prices, calculates subtotal, applies 10% tax, and shows the final amount. Allow the user to enter up to 5 items.