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 you use the right comparison operator?

When you’re confident that your code is flawless, move on to the next chapter and start incorporating functions into your programs.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.181.231