Programming basics พื้นฐานการเขียนโปรแกรม

How computers store data, work with numbers, and plan logic before coding คอมพิวเตอร์เก็บข้อมูล ทำงานกับตัวเลข และวางแผน logic อย่างไรก่อนเขียนโค้ด

Overview ภาพรวม

Before you learn a programming language such as Python, it helps to understand how a computer stores bits, represents numbers and text, and how to sketch program logic with a flowchart. These seven lessons build that foundation with short explanations, interactive demos, and a quiz at the end of each topic.

ก่อนเรียนภาษาโปรแกรมอย่าง Python จะช่วยได้ถ้าเข้าใจว่าคอมพิวเตอร์เก็บบิต แทนตัวเลขและข้อความอย่างไร และจะร่าง logic ของโปรแกรมด้วย flowchart ได้อย่างไร เจ็ดบทนี้สร้างพื้นฐานนั้นด้วยคำอธิบายสั้นๆ ตัวอย่างแบบ interactive และแบบทดสอบท้ายแต่ละบท

How to use the lessons วิธีใช้บทเรียน

  1. Open each lesson from the list below (or the sidebar menu).
  2. Read the explanation, then try the interactive demos where available.
  3. Finish with the end-of-lesson quiz to check your understanding.
  1. เปิดแต่ละบทจากรายการด้านล่าง (หรือเมนูด้านข้าง)
  2. อ่านคำอธิบาย แล้วลองตัวอย่าง interactive ที่มีให้
  3. จบด้วยแบบทดสอบท้ายบทเพื่อตรวจความเข้าใจ

Who it is for เหมาะกับใคร

Anyone who is about to learn a language such as Python, and students of computing, electronics or engineering who need to read data in binary and hexadecimal. Only basic arithmetic is needed — no programming experience.

ผู้ที่กำลังจะเรียนภาษาอย่าง Python และนักศึกษาสาย computing อิเล็กทรอนิกส์ หรือวิศวกรรมที่ต้องอ่านข้อมูล เลขฐานสองและฐานสิบหก ใช้เพียงเลขคณิตพื้นฐาน ไม่ต้องมีประสบการณ์เขียนโปรแกรม

Learning order ลำดับการเรียนรู้

  1. Data Representation — bits and bytes
  2. Binary, Denary, and Hexadecimal — number systems
  3. Number and Conversion Techniques — converting between bases
  4. Representing Negative Numbers — two’s complement
  5. Binary Arithmetic — add, subtract, multiply, divide
  6. ASCII Table — how text becomes numbers
  7. Flowchart Basic — planning logic before coding
  1. การแทนข้อมูล — บิตและไบต์
  2. เลขฐานสอง ฐานสิบ และฐานสิบหก — ระบบเลขฐาน
  3. เทคนิคการแปลงเลขฐาน — แปลงระหว่างฐาน
  4. การแทนจำนวนติดลบ — ทูส์คอมพลีเมนต์
  5. เลขคณิตฐานสอง — บวก ลบ คูณ หาร
  6. ตาราง ASCII — ข้อความกลายเป็นตัวเลขอย่างไร
  7. Flowchart พื้นฐาน — วางแผน logic ก่อนเขียนโค้ด

Take the lessons in this order: each one uses ideas from the lessons before it.

เรียนตามลำดับนี้ เพราะแต่ละบทใช้แนวคิดจากบทก่อนหน้า

What this section covers เนื้อหาในหมวดนี้

Data representation with bits and bytes; the binary, denary and hexadecimal number systems and converting between them by hand; negative numbers with two’s complement; binary arithmetic; ASCII character codes; and basic flowcharts with ANSI/ISO symbols.

การแทนข้อมูลด้วยบิตและไบต์ ระบบเลขฐานสอง ฐานสิบ และฐานสิบหก พร้อมการแปลงระหว่างฐานด้วยมือ จำนวนติดลบด้วยทูส์คอมพลีเมนต์ เลขคณิตฐานสอง รหัสตัวอักษร ASCII และ flowchart พื้นฐานพร้อมสัญลักษณ์ ANSI/ISO

When you finish you can convert numbers between binary, decimal and hexadecimal, explain how negative numbers and characters are stored, add and subtract in binary, and sketch a program as a flowchart before writing any code. Then continue with 02 Python.

เมื่อจบหมวดนี้ คุณจะแปลงตัวเลขระหว่างเลขฐานสอง ฐานสิบ และฐานสิบหกได้ อธิบายวิธีเก็บจำนวนลบและตัวอักษรได้ บวกลบเลขฐานสองได้ และร่างโปรแกรมเป็น flowchart ก่อนเขียนโค้ดได้ จากนั้นเรียนต่อที่ 02 Python

01 Basic

พื้นฐานที่ควรรู้ก่อนเขียนโปรแกรม: บิต เลขฐาน จำนวนลบ เลขคณิตฐานสอง ASCII และ flowchart