Description
Resources:
- Eloquent Javascript pg 30 – 31 (or Chapter 2 Program Structure, sections Control Flow & Conditional Execution)
- Review links in the lesson
Assignment:
Please read carefully, this week there is an individual lab and a small group forum exercise.
Individual Lab:
Write a program that provides a weather alert. Make sure your program does the following:
- Set the temperature to be a variable.
- Use either an IF statement or a SWITCH statement to determine what type of advisory to give for the temperature variable.
- If the temperature is 90 degrees or above, the program alerts a heat advisory
- If the temperature is 80 – 90, the program alerts a heat warning
- Do for three more levels of temperatures.
- Submit your code below. This is due Sunday, February 13th.
Discussion Forum:
In the Forums section, look for “Lesson 3: Weather Alerts”, this will be your first small group forum, you will see only the members of the group you have been assigned into.
Please note that one member has been designated by me to be the group leader (by an asterisk next to their name in the forum). A group leader is responsible for making sure the conversation is started by Thursday and a final answer is posted. The due date is next Sunday, Feb 20th.
In this group discussion, you will discuss some new feature for the weather alert program you are building in the individual lab. For example, you may discuss how you could use other parameters of the weather – such as humidity and then show this in conjunction with the heat advisory.
After your discussion, develop a final post that explains what programming components will you need (i.e. strings, arrays, objects, operators, comparisons) and how they would be used in your program (describe the functionality, you do not need to write the program).