What You Learned

Decision processing is a critical part of software development. It’s what drives menu systems. It’s what determines whether the onscreen avatar jumps, runs, or shoots when you press a key. And, when actually implemented, it’s what translates obscure error codes into error messages that a human can understand.

But as you worked through these programs, you probably noticed you had to do a lot more testing than you did with the previous programs because there were more possible outputs. The more you branch in your code, the more possible outcomes you’ll have.

Before moving on, double-check the logic in your programs. Did you cover all the possible outcomes? For that BMI calculator, what if the BMI ends up right on the line? Did ...

Get Exercises for Programmers 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.