Posts

The Muggy Weather Robotics Duo

Image
 The Muggy Weather Robotics Duo A C++ System That Thinks, Feels (Sensors!), and Acts Humidity is like the quiet character in the weather story that actually runs the show. On muggy days, everything feels heavier—breathing, drying laundry, running machines, even keeping a data center cool. For people, it’s about comfort and health; for machines, it’s about performance and reliability; for plants and buildings, it’s about moisture balance and mold risk. In robotics and automation, muggy weather isn’t just a nuisance—it’s a signal . It tells your systems when to ventilate, when to dehumidify, when to throttle physically demanding tasks, and when to take preventative maintenance actions. Today, we’ll build a two-program C++ system that “understands” muggy weather: Program A — sensor_hub.cpp A sensor-side program that generates (or ingests) a live stream of environmental data (temperature, relative humidity, pressure, CO₂, VOCs). Think of it as your robotic nose and skin , con...

C++ Mini Projects: Simple Inventory Management

C++ Mini Projects: Simple Inventory Management Hey guys, I am back with another cool project. This is going to be a simple inventory management system where the program allows the user to manage the inventory of a shop or store by adding, updating, and deleting products. Also, features like searching for different products by name or number, calculating the inventory's total product value, and saving and loading inventory data from files will be available. Let's go build this project. Skills Used Classes Details of products and inventory Vectors Managing a list of products File Handling Saving and loading inventory data Input and Output Interaction with users and displaying data The Code to Build the Desired Project #include <iostream> #include <vector> #include <string> #include <fstream> #include <iomanip> using namespace std; // Product class class Product { public: int id; string name; int quantity; double ...

C++ Mini Projects: Stopwatch Application

C++ Mini Projects: Stopwatch Application Hey guys today I'm going to be teaching you how to build this stopwatch application all by yourself using C++. The program simulates a basic stopwatch for the user. User is able to start, stop or reset the stopwatch. Time elapsed will be displaying on screen as seconds. Isn't that fun? Then let's go build it! Skills Used For easy viewing and interaction a simple main menu is created Functions for time calculation Chrono is the function used to measure time that has elapsed Loops are used for input from user and repeated menu system Conditional statements deal with user choices The code to build the desired project Code.. #include #include #include using namespace std; using namespace chrono; // Stopwatch class class Stopwatch { private: steady_clock::time_point startTime; steady_clock::time_point endTime; bool running; duration elapsed; public: // Constructor Stopwatch() : running(false), elapsed(0) {} // Start the stop...

C++ Mini Projects: Expense Tracker

 C++ Mini Projects: Expense Tracker Hey guys I'm back with another cool project: Expense Tracker.  The program helps user  to add expenses according to category, amount spent with all the dates in tabular form and the user can also view all the money spent . It will involve calculation of money spent and then breaking it down according to different categories. Then you can save and load all the data of expense tracking for persistence. So lets go build this project! Skills used Input, output handling... Adding expenses  Input from user in category, eg. Food, rental or conveyance. Amount spent... Date... entered in format of yyyy-mm-dd.      The code to build the desired project Code...#include <iostream> #include <vector> #include <string> #include <fstream> #include <iomanip> #include <map> using namespace std; // Expense structure struct Expense {     string category;     double amount;  ...

C++ Mini Projects: Tic-tac-toe Game

C++ Mini Projects: Tic-Tac-Toe Game Hey guys! This is going to be a very interesting project because we will be building a mini-game that many of us played in our childhood. Let's go! This Tic-Tac-Toe program allows two players to play on a 3x3 grid. Players take turns marking cells with 'X' and 'O'. The game checks for a win, a draw, or if the players want to continue after each move. Players also have the option to reset or exit the game. Skills Used Arrays : Used to represent the 3x3 grid. Loops : Manage game turns and updates. Conditional statements : Check winning conditions and validate moves. The Code to Build the Project #include <iostream> #include <vector> using namespace std; // Function prototypes void displayBoard(const vector<vector<char>> &board); bool checkWin(const vector<vector<char>> &board, char player); bool checkDraw(const vector<vector<char>> &board); void resetBoard(vector...

C++ Mini Projects: Library Management System

C++ Mini Projects: Library Management System Hey everyone! Today, we’re building a Library Management System in C++. This system will help manage the inventory of a library, allowing users to search for books, add new books, and delete existing ones. Just follow along, and by the end of this blog, you'll have built a functional library management system using C++! Skills Used ✅ Classes & Objects – Encapsulating book details and operations. ✅ Arrays & Vectors – Efficient storage of book records. ✅ File Handling – Ensuring data persistence across sessions. ✅ Modularization – Structuring functions for different features. ✅ Search, Add, Delete & Display Operations – Core functionalities for managing books. Code for Library Management System #include <iostream> #include <vector> #include <string> #include <fstream> #include <iomanip> using namespace std; // Book class class Book { public: string title, author, isbn; in...

C++ Mini Projects: Simple Banking System

C++ Mini Projects: Simple Banking System Hey everyone! Today, I’m back with a different kind of project—one that’s both fun and practical. We’re going to build a Simple Banking System in C++! With this program, users can: ✔ Deposit money into their accounts ✔ Withdraw money with balance validation ✔ Check their account balance regularly This will be a great way to apply essential C++ concepts while learning how banking systems function at a fundamental level. So, let’s dive in and code this project together! Skills Used ✅ Functions – Modularizing the code for deposit, withdrawal, and balance checking. ✅ Loops – Enabling repeated user interaction through a menu system. ✅ Conditional Statements – Validating withdrawals and ensuring sufficient funds. ✅ Reference Parameters – Using & to modify the balance in deposit and withdrawal functions. ✅ Validation – Ensuring all transactions use positive numbers and maintain a sufficient balance. Code for the Simple Banking...

C++ Mini Projects: BMI Calculator

C++ Mini Projects BMI Calculator  Hey guys I'm back with another cool project. This going to be the third calculator in our series the first one with the basic calculator the second one was a student calculator and now this going to be a BMI calculator. I hope you're enjoying this series and gaining something from it. Now let's smash this project too! Description: Project: BMI Calculator Explanation.. Asking the user to input thier height ( meters) and weight (kilograms) Calculating bmi( body mass index) with the help of formula  Bmi= weight/height *height  Categorize bmi into different health  Options  Underweight ...bmi<18.5 Normal weight...18.5</bmi<24.9 Overweight...25</bmi <29.9 Obesity...bmi >/30 You will learn throughout Validates the input... Making sure that height and weight are positive numbers  Calculations...calculate bmi Conditional statements... Categorizing bmi.  Code to build the desired project #include <iostream...