AP Computer Science A · Lesson 1.1 · Unit 1 · CED topic 1.1

Algorithms, programs, and compilers

Name:   Date:  

1 Why this lesson matters

Read the opening paragraph and the "Required content" box on the lesson page. In your own words, explain each objective below.

1.A. Represent patterns and algorithms found in everyday life using written language or diagrams.

1.B. Explain the code compilation and execution process.

1.C. Identify types of programming errors.

2 Describing an algorithm before you code it

Read this section. In your own words, summarize the main idea.

3 From source code to a running program

Read this section. In your own words, summarize the main idea.

4 Four ways code goes wrong

Read this section. In your own words, summarize the main idea.

5 Worked example

Read the "Worked example" box. Then, without looking back, try writing your own answer below.

Convert 21.5 degrees Celsius to Fahrenheit and print the result.

6 Exam focus: avoid this mistake

Read the "Exam focus" box, then restate it in your own words.

7 Sum it up

In two or three sentences, explain this lesson's main idea to someone who has not read it.