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の概念を学ぶためにPythonを使います。
- 一部のレッスンは読解のみです。 others はコードを実行できます。各ステップを読み進め、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).
日本語
入力 → 処理 → 出力
- ほとんどのプログラムは3つのステップで動作します。
- 入力:データが入力される(入力した数値、タップ操作、ファイルなど)。
- 処理:プログラムがそのデータに対して作業を行います。
- 出力:結果が表示される(画面のテキスト、音、保存されたファイルなど)。
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.
日本語
小さな例
- このプログラムは入力(名前)を受け取り、小さな処理を行い、出力を表示します。
- 今すぐ書く必要はありません — 読んで3つのステップを見つけてください。
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.
日本語
次のステップ
- このコースはAP CSPの5つの大きなテーマに従います:創造的開発、データ、アルゴリズムとプログラミング、コンピュータシステムとネットワーク、およびコンピューティングの影響です。
- 次回の授業ではビットとバイナリについて紹介します。0と1を使ってコンピュータがデータをどのように格納するかです。
- まず、以下の小さなタスクを試してください。上記の例のように、入力を取得して処理し、出力を印刷します。
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. · ご自身で3つのステップを試してみてください。入力は変数nameとして既に与えられています。これを挨拶文に変換して処理し、Hello, と名前を続けて出力してください。
Click Run to see the output here. · 実行ボタンをクリックして出力を確認してください。