Tuesday, January 27, 2009

IT104 Lesson Plan for 01/26/09

Objectives
Create computer programs that can make decisions.
Use pseudocode to represent Boolean conditions.
Use flowcharts as a tool to represent Boolean conditions.
Apply the concept of nesting conditions to computer programs.
Use if-then, if-then-else, and case structures in a computer program.
Compare strings using the program language.
Readings
Starting Out with Programming Logic & Design. Pearson Custom Publishing, 2008.
• Chapter 4, pp. 115-142

Homework
The following homework is designed to cover the course objectives for this unit.
Read Chapter 5, pp. 163-183 and pp. 196-201,
Chapter 4 Review Questions
Algorithm Workbench Review Questions 3, 4, and 5 starting on p. 158

Labs
Lab 7.1: Decisions and Boolean Logic
What is the purpose?
In this lab, you will gain practice designing decision making structures using single
alternative (if-then) and dual alternative (if-then-else) decision structures. In addition,
nested if-then-else and if-then-else-if structures will also be covered. You will design
decision-making structures using pseudocode and flowcharts, and then implement them
in the Python programming language.
What are the steps?
• Task 1: Lab 3.1—Evaluating Conditions
Procedure
1. Complete Lab 3.1—Evaluating Conditions on pp. 43-44 of the Lab
Manual to Accompany Starting Out with Programming Logic &
Design.
2. Submit your answers to Steps 2 and 3 to your instructor for
grading.
• Task 2: Lab 3.2—Pseudocode and Decisions
Procedure
1. Complete Lab 3.2—Pseudocode and Decisions on pp. 45-46 of the
Lab Manual to Accompany Starting Out with Programming Logic
& Design.
2. Submit your answers to Steps 1, 2, and 3 to your instructor for
grading.
• Task 3: Lab 3.3—Flowcharts
Procedure
1. Complete Lab 3.3—Flowcharts on pp. 47-50 of the Lab Manual to
Accompany Starting Out with Programming Logic & Design.
2. Submit your completed flowcharts to your instructor for grading.
• Task 4: Lab 3.4—Python Code
Procedure
1. Complete Lab 3.4—Python Code on pp. 51-53 of the Lab Manual
to Accompany Starting Out with Programming Logic & Design.
2. Submit your completed code to your instructor for grading.
• Task 5: Lab 4.3—Pseudocode: Nested Decision Structures
Procedure
1. Complete Lab 4.3—Pseudocode: Nested Decision Structures on
pp. 63-65 of the Lab Manual to Accompany Starting Out with
Programming Logic & Design.

2. Submit your pseudocode to your instructor for grading.
• Task 6: Lab 4.4—Flowcharts
Procedure
1. Complete Lab 4.4—Flowcharts on pp. 67-71 of the Lab Manual to
Accompany Starting Out with Programming Logic & Design.
2. Submit your completed flowcharts to your instructor for grading.
• Task 7: Lab 4.5—Python Code
Procedure
1. Complete Lab 4.5—Python Code on pp. 73-76 of the Lab Manual
to Accompany Starting Out with Programming Logic & Design.
2. Submit your completed code to your instructor for grading.
Did it work?
• Were you able to obtain the answers in Steps 2 and 3 of Lab 3.1?
• Were you able to declare the variables in Lab 3.2?
• Were you able to name the modules needed in Step 2 of Lab 3.2?
• Were you able to complete the pseudocode in Step 3 of Lab 3.2?
• Were you able to create flowcharts using Raptor?
• Were you able to create the Python code in Labs 3.4 and 4.5?
• Did you submit your work to your instructor for grading?


Lab 7.1b: Decisions and Boolean Logic
What is the purpose?
In this lab, you will practice designing decision-making structures using case structures,
compound Boolean expressions, and Boolean variables. You will design decision-making
structures using pseudocode and flowcharts, and then implement them in the Python
programming language.
What are the steps?
• Task 1: Lab 3.5—Programming Challenge 1: Guess the Secrets
Procedure
1. Complete Lab 3.5—Programming Challenge 1: Guess the Secrets
on pp. 55-56 of the Lab Manual to Accompany Starting Out with
Programming Logic & Design.
2. Submit your work to your instructor for grading.
• Task 2: Lab 4.1—Logical Operators and Dual Alternative Decisions
Procedure
1. Complete Lab 4.1—Logical Operators and Dual Alternative
Decisions on pp. 57-58 of the Lab Manual to Accompany Starting
Out with Programming Logic & Design.
2. Submit your answer for Steps 2 and 3 to your instructor for
grading.
• Task 3: Lab 4.2—Pseudocode: Dual Alternative Decisions
Procedure
1. Complete Lab 4.2—Pseudocode: Dual Alternative Decisions on
pp. 59-62 of the Lab Manual to Accompany Starting Out with
Programming Logic & Design.
2. Submit your pseudocode to your instructor for grading.
• Task 4: Lab 4.6—Programming Challenge 1: Tip, Tax, and Total
Procedure
1. Complete Lab 4.6—Programming Challenge 1: Tip, Tax, and
Total on p. 77 of the Lab Manual to Accompany Starting Out with
Programming Logic & Design.
2. Submit your work to your instructor for grading.

No comments: