All programming languages have specific statements that allow you to perform
basic operations. These statements accomplish all programmed activity, including our interaction with objects and the definition of the services those objects provide. This chapter examines several of these programming statements as well as some additional operators. It begins by exploring the basic activities that a programmer goes through when developing software. These activities form the cornerstone of high-quality software development and represent the first step toward a disciplined development process. Finally, we use the statements we examine in this chapter to augment our ability to produce graphical output.
chapter objectives
◗ Discuss basic program development activities.
◗ Define the flow of control through a program.
◗ Perform decision making using if and switch statements.
◗ Define expressions that let us make complex decisions.
◗ Perform statements repetitively using while, do, and for statements.
◗ Draw with the aid of conditionals and loops.
Chapter 3 pdf
3.10 drawing using conditionals and loops
Updated:
Tuesday, January 5, 2021 6:47 AM