Question: 1 2 . Reflect on Exercise 2 While it was natural to use an if - else statement for this exercise, it was not actually

12. Reflect on Exercise 2
While it was natural to use an if-else statement for this exercise, it was not actually necessary. You could have chained together multiple if statements, just like you did in the first exercise. However, the two cases were mutually exclusive; an e-mail is either one type or the other, but not both.
Why do you think it is preferable to use an if-else statement in this case?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!