What computing is · ما هو علم الحاسوب
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · تحتاج هذه الصفحة إلى متصفح حديث (يدعم SharedArrayBuffer). يرجى تحديث Chrome أو Edge أو Firefox أو Safari إلى أحدث إصدار.
English
Welcome to AP CSP
- This is AP Computer Science Principles — the big ideas of computing.
- You already learned Python in the basics course. Here we use it for AP ideas.
- Some lessons are reading only. Others let you run code. Read each step, then press Continue.
العربية
مرحبًا بك في AP CSP
- هذا هو AP Computer Science Principles — الأفكار الكبيرة للحوسبة.
- لقد تعلمت بالفعل Python في الدرس الأساسي. هنا نستخدمه لأفكار AP.
- بعض الدروس للقراءة فقط. أخرى تسمح لك بتشغيل الكود. اقرأ كل خطوة، ثم اضغط Continue (استمر).
English
Every program has a purpose
- A program is a set of instructions a computer follows.
- Every program is made for a reason — to solve a problem or help people.
- Example purposes: send a message, play a song, find the shortest road.
العربية
لكل برنامج غرض
- البرنامج هو مجموعة تعليمات يتبعها الكمبيوتر.
- كل برنامج مصمم لغرض معين — لحل مشكلة أو مساعدة الناس.
- أمثلة على الأغراض: إرسال رسالة، تشغيل أغنية، إيجاد أقصر طريق.
English
Input → process → output
- Most programs work in three steps.
- Input: data goes in (a number you type, a tap, a file).
- Process: the program does work on that data.
- Output: a result comes out (text on the screen, a sound, a saved file).
العربية
الإدخال ← المعالجة ← الإخراج
- تعمل معظم البرامج على ثلاث خطوات.
- الإدخال: تدخل البيانات (رقم تكتبه، نقرة، ملف).
- المعالجة: يقوم البرنامج بالعمل على تلك البيانات.
- الإخراج: يظهر نتيجة (نص على الشاشة، صوت، ملف محفوظ).
INPUT PROCESS OUTPUT
"5" -> add 5 and 3 -> "8"
English
A tiny example
- This program takes an input (a name), does a small process, and shows an output.
- You do not need to write it now — just read it and find the three steps.
العربية
مثال صغير
- يأخذ هذا البرنامج مدخلات (اسم)، يقوم بعملية معالجة صغيرة، ويعرض إخراجاً.
- لا تحتاج لكتابته الآن — فقط اقرأه وابحث عن الخطوات الثلاث.
name = input("Your name: ") # input
greeting = "Hello, " + name # process
print(greeting) # output
English
Design is a cycle
- Good programs are not written perfectly the first time.
- We use an iterative cycle: do it again and again, a little better each time.
- Plan → write → test → improve, then repeat.
العربية
التصميم دورة
- البرامج الجيدة لا تُكتب بشكل مثالي في المرة الأولى.
- نستخدم دورة تكرارية: نفعلها مراراً وتكراراً، وتحسّن قليلاً في كل مرة.
- تخطيط → كتابة → اختبار → تحسين، ثم تكرار العملية.
plan ──> write ──> test ──> improve
^ │
└──────────────────────────────┘
English
Errors are normal
- An error (a bug) is a mistake that makes the program do the wrong thing.
- In the basics course you learned to debug: read the message, find the line, fix it.
- Finding and fixing bugs is a normal part of every step in the cycle.
العربية
الأخطاء طبيعية
- الخطأ (أو العيب البرمجي) هو خطأ يجعل البرنامج يقوم بفعل خاطئ.
- في الدرس الأساسي، تعلمت التصحيح البرمجي: قراءة الرسالة، إيجاد السطر، وإصلاحه.
- اكتشاف الأخطاء البرمجية وإصلاحها جزء طبيعي من كل مرحلة في الدورة.
English
Computing is collaborative
- Most real programs are built by a team, not one person.
- People share ideas, split the work, and check each other's code.
- Different people bring different views, which makes the program better.
العربية
الحوسبة عملية تعاونية
- تُبنى معظم البرامج الحقيقية بواسطة فريق عمل، وليس شخص واحد.
- يتشارك الأشخاص الأفكار، ويوزعون العمل، ويتحققون من أكواد بعضهم البعض.
- يقدم الأشخاص المختلفون وجهات نظر متنوعة، مما يجعل البرنامج أفضل.
English
Common mistakes
- Computing is problem-solving with data, not just typing code.
- An algorithm is a clear, finite sequence of steps.
العربية
أخطاء شائعة
- الحوسبة هي حل المشكلات باستخدام البيانات، وليست مجرد كتابة كود.
- الخوارزمية هي تسلسل واضح ومحدود من الخطوات.
English
What is next
- This course follows the 5 Big Ideas of AP CSP: Creative Development, Data, Algorithms & Programming, Computer Systems & Networks, and the Impact of Computing.
- Next lesson we look at bits and binary — how computers store data with 0s and 1s.
- First, try the small task below — take an input, process it, and print the output, just like the example above.
العربية
ما الذي يلي؟
- يتبع هذا المسار الأفكار الكبرى 5 لـ AP CSP: التطوير الإبداعي، البيانات، الخوارزميات والبرمجة، أنظمة الحاسوب والشبكات، وأثر الحوسبة.
- في الدرس القادم نناقش البِتات والثنائيات — كيف تخزن الحواسيب البيانات باستخدام 0s و1s.
- أولاً، حاول المهمة الصغيرة أدناه — خذ مدخلات، وعالجها، وطبع المخرجات، تماماً مثل المثال أعلاه.
Explore · استكشف
Input → process → output · مدخلات ← معالجة ← مخرجات
Every computation takes input, processes it, and gives output. · كل عملية حسابية تأخذ مدخلات، تعالجها، وتعطي مخرجات.
Try the three steps yourself. The input is already given as the variable name. Process it into a greeting, then output it: print Hello, followed by the name. · جرب الخطوات الثلاث بنفسك. الـ input معطى مسبقاً كمتغير name. Processه لتحويله إلى تحية، ثم outputه: اطبع Hello, متبوعاً بالاسم.
Click Run to see the output here. · اضغط تشغيل لرؤية المخرجات هنا.