Read Ch. 4 of Prelude to Programming. Participate in class discussion. Respond to weekly discussion questions. 01/15/12 01/10/12 01/12/12 01/13/12 10 10
Reading Participation Discussion Questions CheckPoint Sequential and Selection Processing Control Structure
Read the following scenario: You are an accountant setting up a payroll system for a small firm. Each line of the table in Appendix G indicates an employee’s salary range and corresponding base tax amount and tax percentage. Given a salary amount, the tax is calculated by adding the base tax for that salary range and the product of percentage of excess and the amount of salary over the minimum salary for that range. Design a program that solves this problem. Generate a set of input test values. Perform a design walkthrough to verify your design.
Week Four: Structured Programming, Part II
Objectives 4.1 Demonstrate the iteration control structure. 4.2 Design complex program algorithms using the three basic control structures. Read Ch. 5 of Prelude to Programming. Design a program that models the worm’s behavior in the following 01/20/12 30
Course Design Guide IT/210 Version 5
Iteration Control Structure
scenario: A worm is moving toward an apple. Each time it moves, the worm cuts the distance between itself and the apple by its own body length until the worm is close enough to enter the apple. The worm can enter the