Vocabulary
computer | A device that uses program instructions to transform input into output
|
computer program | A device that uses program instructions to transform input into output |
formal language | A language used to write a computer program |
natural language | A language that is written and spoken by people, such as English, French, or Spanish |
grammar | Rules for writing statements in a given language |
Vocabulary
computer
A device that uses program instructions to transform input into output
computer program
Instructions written for a computer
formal language
Language used to write a computer program
natural language
Language that is written and spoken by people
grammar
Rules for writing statements correctly
Comparison
natural languages | formal languages |
communicate with people | communicate with computers |
evolve and change over time | are designed according to formal rules |
have a huge vocabulary | have a few keywords |
Some Formal (programming) Languages
C
Used for systems programming. Microsoft
Windows was written in C.
HTML
Used to create web pages
javascript
Used to create active web pages that include features like animations, drag and drop
python
General purpose language, often used by scientists
scheme
Developed by MIT for teaching programming
Exercise 1.0 – Programming Language Developed in Class
These instructions should recreate the figure on page 7 of the workbook.
- start (6, 6)
- draw (2, 2)
- draw (2, −2)
- start (8,8)
- draw (0,4)
- start (6,10)
- draw (4,0)
- start (7,12)
- square 2