Question: You can use the selection structures in this chapter interchangeably for many circumstances. There are a few occasions when one is clearly preferable to another
You can use the selection structures in this chapter interchangeably for many circumstances. There are a few occasions when one is clearly preferable to another based on input data. Some of these situations were touched on in the switch statement discussion. Review these, give an overview of all of the selection structures discussed in the chapter, and then discuss how to determine which structure to use when there is no clear indication. How much of the choice should be based on personal preference and how much on conventional practices? Are there performance issues as well?
The selection in this chapter is if... and if...else
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
