Title: Module 5 - Conditionals and Loops
Course: COP 2551 Intro to Object Oriented Prog > Section: Module 5 - Conditionals and Loops

Introduction

Many people think a computer is smart because it appears to think and make decisions. In every programming language you will find specific keywords and expressions allow you to create statements that control the flow of a program in a way that simulates decision-making by selecting a specific path. There are also statements that can cause an action or group of actions to repeat multiple times.

In this module, you will learn the key Java statements of the Selection and Repetition programming constructs. You will also explore the pitfalls to avoid when comparing data and objects. At the very beginning of any decision/selection/repetition structure is a Boolean expression.

Objectives

Upon completion of this module, the student will be able to:

- Explore Boolean expressions that can be used to make decisions.
- Define the flow of control through a method.
- Perform basic decision making using IF statements.
- Explore issues pertaining to the comparison of certain types of data.
- ExecuteExplore the concept of an iterator object and how to use one to read a text file. statements repetitively using WHILE loops.

Readings & Resources

Chapter 5, Sections 1 – 6 Java Software Solutions: Foundations of Program Design, 8^th Ed., John Lewis and William Loftus.

Assignments and Activities

- Complete the Module 5 Ungraded Activities
- Complete the Module 5 Quiz
- Begin Programming Project 4
- Submit Programming Project 3