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

Assignment statements and input

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.

4.A. Develop code for assignment statements with expressions and determine the value that is stored in the variable as a result of these statements.

4.B. Develop code to read input.

2 The assignment operator

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

3 Tracing

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

4 Getting data in: input

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.

Trace this code and give the final values.

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.