Posts

Showing posts with the label notes

Binary Coded Decimal (BCD) — TechAmbitionX | Mr. BILRED | Basic Stuff

Image
Binary Coded Decimal (BCD) — TechAmbitionX 🔹 1. What is BCD? BCD (Binary Coded Decimal) is a way of representing decimal numbers (0–9) in binary form using 4 bits for each digit . Example: Decimal 59 → BCD = 0101 1001 Pure Binary 59 → 111011 Notice how in BCD, each digit is separate (5 = 0101, 9 = 1001). This makes it easier for circuits to display numbers. 🔹 2. Why use BCD? Normal binary is compact, but BCD is better when numbers need to be shown to humans (digit by digit). 💡 Devices like digital clocks, calculators, counters , and 7-segment displays often use BCD internally. 🔹 3. Rules of BCD Each digit = 4 bits (nibble). Valid range = 0000 (0) to 1001 (9). 1010–1111 are invalid in standard BCD. 🔹 4. BCD Truth Table (0–9) Decimal BCD (8421) 0 0...

Your First Program In Python - Python Notes By Mr. BILRED - TechAmbitionX

Image
Learn Python - TechAmbitionX Okay, so you’ve decided to learn Python... Good, but wait, Why? (Go ask yourself) Now listen, I don't know for whatever reason you're learning Python Proglang, but this is what CAN be believed about it: Python is not just a language, it’s your gateway to automation, data science, web development, AI, and beyond. Today, start your Python journey with the absolute basics Python is a high-level, beginner-friendly programming language known for its clean syntax and readability. It’s used by tech giants like Google, Netflix, and NASA. Why Python? Easy to read, easy to write. Big companies use it (Google, Netflix, even NASA). Used in AI, Data Science, Machine Learning, Automation, you know! You can build websites, automate boring stuff, work on AI, or just mess around and learn. How to install Python Go to python.org and install the latest version of Python. Download any C...

C++ Prog Lang In A Nutshell VOL #2 Compiled By Bilal Ahmad Khan AKA Mr. BILRED - TechAmbitonX

Image
C++ Notes VOL #2 Released | TechAmbitionX C++ Prog Lang In A Nutshell VOL #2 Compiled by Mr. BILRED (aka Bilal Ahmad Khan) Alhamdulillah! The second volume of my C++ notes is finally released Alhamdulillah After late-night edits and exam pressure (maybe), I’ve put together another handout. Actually, it's my midterm right now... and I thought — why not compile VOL #2? What’s Inside? Functions, UDFs, Pass-by-Value / Reference Searching & Sorting (Linear, Binary, Bubble, Merge etc.) Cheatsheets for quick revision Final thoughts and insights It’s a sidekick, not the entire combo meal. But if you're someone who values conceptual clarity over technical jargon , this might just help you out! 📥 Visit GitHub 📥 Drive Download

C++ escape sequences with clear examples and outputs - Compiled By Bilal Ahmad Khan AKA Mr. BILRED

Image
C++ Escape Sequences: The Guide C++ Escape Sequences: The Guide Introduction When writing C++ programs, you often need to include special characters that can't be typed directly. This is where escape sequences come in handy! They allow you to insert control characters, special symbols, and formatting into your output. In this guide, we’ll explore all C++ escape sequences with examples. What Are Escape Sequences? Escape sequences in C++ are special characters preceded by a backslash ( \ ). They help in formatting text output, inserting special characters, and managing control characters. List of C++ Escape Sequences Escape Sequence Meaning Simple Explanation Example Output \a Alert (bell sound) Makes a beep sound in the terminal. 🔊 (if sound is enabled) ...

C++ Arrays Explained: Syntax, Examples & Theory | Compiled By Bilal Ahmad Khan AKA Mr. BILRED | CppNotes

Image
Arrays in C++ – Easy Explanation with Examples Understanding Arrays in C++ – Easy Guide for Beginners By Bilal Ahmad Khan AKA Mr. BILRED Asking Positively! Have you ever wondered WHY SHOULD WE EVEN USE ARRAYS? Like, WHY? Look Arrays help programmers store and manage multiple values efficiently. This guide explains arrays in C++ with simple examples. 📌 What is an Array in C++? An array is a collection of similar data types stored in a single variable. Instead of creating multiple variables, an array lets us store multiple values in one place. In "mere walay alfaaz", Agar aap chaahty ho aap ziada saari values store karo, to kia phir har dafa variables define karty raho gy? NAHI Na! Phir isko solve karna he arrays k zariye! But first, understand its basic syntax Basic SYNTAX Of Arrays data_type array_name[size]; ✅ Example: int numbers[5] = {10, 20, 30, 40, 50}; cout 📌 Importance; Why Do We Use Arrays? 🔹 Saves Space: No need to create separat...

Types Of Errors In C++ Programming - Programming Basics - Bilal Ahmad Khan AKA Mr. BILRED

Image
Types Of Errors In C++ Programming - CppNotes - Basic Knowy Introduction Errors in C++ programming, Aah! I guess every programmer faces them. But, There are some types of errors in programming, and understanding different types of errors might help in debugging and improving code efficiency. In C++, errors can be classified into three main types: Syntax Errors (Compile-Time Errors) Logical Errors Runtime Errors (Exceptions) We’ll go through each of them one by one! 1.      Syntax Errors (Compile-Time Errors) A syntax error occurs when the code does not follow the rules of the C++ language. These errors are detected by the compiler before the program runs #include <iostream> using namespace std ; int main () {     cout << "Hello, World!"  // Missing semicolon     return 0 ; } Error: expected ';' before 'return' Fix: Add a semicolon at the end of the cout statement.   2. ...