- Get Ready to Program
- What a Computer Program Does
- Common Programming Misconceptions
- Many Programs Already Exist
- Programmers Are in Demand
- The Real Value of Programs
- Users Generally Don't Own Programs
- Giving Computers Programs
- Your First Program
- Clarifying Comments
- Entering Your Own Program
Giving Computers Programs
FIGURE 1.2 A program’s instructions are somewhat cryptic, but readable by people.
LISTING 1.1 Machine language is extremely difficult for people to decipher.
01100100 10111101 10010011 10010100 00001111 01010101 11111110
All programs you run on your computer, phone, or tablet, including Microsoft Word, Internet Explorer, and programming languages, are already converted into machine language. That’s why you can click a program’s icon and the program begins immediately. No interpretation or compilation is required. By providing you with the machine language only, software vendors serve two purposes:
- They give you programs that execute quickly without the intervening compiling step.
- They ensure that you don’t change the source code, thereby protecting their intellectual property.