Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 2 . Reflect on Exercise 2 While it was natural to use an if - else statement for this exercise, it was not actually
Reflect on Exercise
While it was natural to use an ifelse 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 email is either one type or the other, but not both.
Why do you think it is preferable to use an ifelse statement in this case?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started