Draw a diagram that compares high-level and low-level programming languages. Include at least three characteristics for each type and show how they relate to the programmer and the computer hardware.
High-level vs low-level languages in Intro to Computing - Draw & Compare
+----------------------+ +-----------------------+
| High-Level Language | | Low-Level Language |
+----------------------+ +-----------------------+
| - Easy to read/write | | - Close to hardware |
| - Uses English-like | | - Uses machine code |
| instructions | | or assembly code |
| - Portable across | | - Fast execution |
| different systems | | - Harder to learn |
+----------+-----------+ +-----------+-----------+
| |
| |
v v
+----------------------+ +-----------------------+
| Programmer writes | | Programmer writes |
| code in easy format | | code close to hardware |
+----------------------+ +-----------------------+
| |
| |
v v
+----------------------+ +-----------------------+
| Code translated by | | Code assembled or |
| compiler/interpreter | | directly executed by |
| into machine code | | CPU |
+----------------------+ +-----------------------+
| |
+---------------+-------------------+
|
v
+-----------------------+
| Computer Hardware (CPU)|
+-----------------------+This diagram shows two main types of programming languages: high-level and low-level.
On the left, high-level languages are easy for humans to read and write because they use English-like words and are portable across different computers. Programmers write code in these languages, which is then translated by a compiler or interpreter into machine code that the computer hardware understands.
On the right, low-level languages are closer to the computer's hardware. They use machine code or assembly language, which is harder for humans to read but runs very fast. Programmers write code that is either directly executed by the CPU or assembled into machine code.
The arrows show the flow from the programmer to the computer hardware, illustrating how the type of language affects the process.