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 วิธีใช้บทเรียน
- Open each lesson from the list below (or the sidebar menu).
- Read the explanation, then try the interactive demos where available.
- Finish with the end-of-lesson quiz to check your understanding.
- เปิดแต่ละบทจากรายการด้านล่าง (หรือเมนูด้านข้าง)
- อ่านคำอธิบาย แล้วลองตัวอย่าง interactive ที่มีให้
- จบด้วยแบบทดสอบท้ายบทเพื่อตรวจความเข้าใจ
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 ลำดับการเรียนรู้
- Data Representation — bits and bytes
- Binary, Denary, and Hexadecimal — number systems
- Number and Conversion Techniques — converting between bases
- Representing Negative Numbers — two’s complement
- Binary Arithmetic — add, subtract, multiply, divide
- ASCII Table — how text becomes numbers
- Flowchart Basic — planning logic before coding
- การแทนข้อมูล — บิตและไบต์
- เลขฐานสอง ฐานสิบ และฐานสิบหก — ระบบเลขฐาน
- เทคนิคการแปลงเลขฐาน — แปลงระหว่างฐาน
- การแทนจำนวนติดลบ — ทูส์คอมพลีเมนต์
- เลขคณิตฐานสอง — บวก ลบ คูณ หาร
- ตาราง ASCII — ข้อความกลายเป็นตัวเลขอย่างไร
- 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