Answered step by step
Verified Expert Solution
Link Copied!

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

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

More Books

Students also viewed these Databases questions