This is a three part question. You are modifying some code for the department of Homeland Security void terrorism (Action terrorist_action) switch (terrorist_action) case PLOT_ATTACK: if (alert_level — GREEN) alert level = ORANGE; else if (alert_level — ORANGE) condemn_action(); alert level = RED: break; case ALL_QUIET: if (alert level == RED) alert level = ORANGE; else if (alert level == ORANGE) alert level – GREEN; else go_golfing0; break; default: break; // you may assume this never happens Part A) What principle does this violate? Part B) Why is this violation a bad thing (explain)? Part C) What pattern can you use to solve it and how would you apply the pattern.
https://www.ukbestwritings.com/wp-content/uploads/2021/05/uk-best-writings-300x45.png 0 0 Ukbwadmin https://www.ukbestwritings.com/wp-content/uploads/2021/05/uk-best-writings-300x45.png Ukbwadmin2021-07-08 20:50:122021-07-22 09:22:32This is a three part question. You are modifying some code for the department of Homeland Security v