Chapter 3. Conditionals and Boolean logic
- Representing rules and facts in a program
- How programs can make decisions
- Running code conditionally based on comparisons
Although you may have never thought about it before, almost every computer program you’ve used in your life reacts and makes decisions. Any program you run will execute different sections of code depending on what you type and click, what your files contain, and even what files on other computers contain. Calculator programs are no different, and most programs you’ll want to write will need to have rules and the ability to make decisions. You’ve already seen a quadratic equation solver, QUAD, that displayed a warning about imaginary roots only if it determined ...
Get Programming the TI-83 Plus/TI-84 Plus now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.