diff --git a/_notebooks/CSSE/Sprint_3/2024-09-26-big-idea-3-7-2.ipynb b/_notebooks/CSSE/Sprint_3/2024-09-26-big-idea-3-7-2.ipynb index 56cc659..380a9c4 100644 --- a/_notebooks/CSSE/Sprint_3/2024-09-26-big-idea-3-7-2.ipynb +++ b/_notebooks/CSSE/Sprint_3/2024-09-26-big-idea-3-7-2.ipynb @@ -26,22 +26,34 @@ "

Nested Conditionals Code Example in Javascript

\n", "To gain a better understanding about Nested Conditionals and how they work, first we need to understand what condtionals are; Conditionals in general are \"if-then\" statements. They allow your program to make decisions based on certain conditions. If the condition is true, the program will do one thing; if it’s false, the program will do something else (or nothing at all). Here's an example. \n", "Think of it as asking a question and then deciding what to do based on the answer:\n", + "\n", "Question: \"How are you doing?\"\n", + "\n", " Answer/Input: \"Good!\"\n", - "=>Result/Output: \"Glad to hear that!^^\"\n", + " Result/Output: \"Glad to hear that!^^\"\n", "\n", " Alternative Answer/Input: \"Not that well\"\n", - "=>Alternative Result: \"Sorry to hear that, I hope it isn't that bad.\"\n", + " Alternative Result: \"Sorry to hear that, I hope it isn't that bad.\"\n", "\n", "On the other hand, Nested Conditionals are conditionals within other conditionals. Let's use the previous example and extend it to an example with nested conditionals:\n", + "\n", "Question: \"How are you doing?\"\n", + "\n", " Answer/Input: \"Good!\"\n", - "=>Result/Output: \"Oooh~! Did something fun happen?\"\n", + "\n", + " Result/Output: \"Oooh~! Did something fun happen?\"\n", + "\n", " Answer/Input # 2: \"Actually, yes, I got an A for an assignment in my CSSE class ^^\"\n", - " =>result/Output # 2:\n", + "\n", + " Result/Output # 2: \"Ooh nice job! ^^\"\n", "\n", " Alternative Answer/Input: \"Not that well\"\n", - "=>Alternative Result: \"Sorry to hear that, what happend?\"\n" + "\n", + " Alternative Result: \"Sorry to hear that, what happend?\"\n", + "\n", + " Answer/Input #2: \"I threw up in front of my entire class.\"\n", + " \n", + " result/output #2: \"Oh... That probably sucks...\"\n" ] }, { diff --git a/_notebooks/CSSE/Sprint_3/2024-09-26-big-idea-3-7-4.ipynb b/_notebooks/CSSE/Sprint_3/2024-09-26-big-idea-3-7-4.ipynb index 52fe089..80b9208 100644 --- a/_notebooks/CSSE/Sprint_3/2024-09-26-big-idea-3-7-4.ipynb +++ b/_notebooks/CSSE/Sprint_3/2024-09-26-big-idea-3-7-4.ipynb @@ -43,7 +43,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - " Hack 2: Write Javascript code deciding whether or not you can bake a cake. \n", + " Hack 2: Write Javascript code deciding whether or not you can bake a cake. \n", "\n", "Check the following conditions:\n", "\n", @@ -79,7 +79,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "

Javascript Quiz

\n", + "

Javascript Quiz

\n", "\n", "**Question 1:**\n", "\n",