Making Decisions

  • Ivor Horton
Chapter

Abstract

Decision-making is fundamental to any kind of computer programming. It's one of the things that differentiates a computer from a calculator. It means altering the sequence of execution depending on the result of a comparison. In this chapter, you’ll explore how to make choices and decisions. This will allow you to validate program input and write programs that can adapt their actions depending on the input data. Your programs will be able to handle problems where logic is fundamental to the solution. By the end of this chapter, you will have learned:

Keywords

Output Statement Logical Operator Conditional Operator Break Statement Switch Statement 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Ivor Horton 2014

Authors and Affiliations

  • Ivor Horton
    • 1
  1. 1.WAUnited Kingdom

Personalised recommendations