CS_2984_19921_201601
Homework 16
Skip To Content
Dashboard
  • Login
  • Dashboard
  • Calendar
  • Inbox
  • History
  • Help
Close
  • My Dashboard
  • CS_2984_19921_201601
  • Assignments
  • Homework 16
2016 Spring
  • Home
  • Modules
  • Pages
  • Assignments
  • Syllabus
  • Smart Search
  • Facebook Group
  • Class Notebook
  • Portfolium
  • Google Drive
  • Microsoft OneDrive
  • Top Hat
  • VT Library Help
  • Zoom
  • Course Gallery
  • Gradescope
  • Course Evaluations

Homework 16

  • Due Mar 22, 2016 by 9:30am
  • Points 10
  • Submitting a file upload
  • File Types py
  • Available until Apr 19, 2016 at 9:30am
This assignment was locked Apr 19, 2016 at 9:30am.

Download the files for each of the problems below. Upload the files with the changes you generate as a response to this homework.

Problem #1

File: hw-16-q1.py Download hw-16-q1.py

Use the weather.get_report block to answer the following question about a city:
"Is a snowstorm happening at the moment?"
For this problem, consider that a snowstorm may be happening if:

  • The temperature is lower than or equal to 32.
  • Humidity is above 80.
  • Wind is higher than 30.

Use this logic to calculate whether Seattle is going through one. Print "Yes" if it is, print "No" if it isn't.

Problem #2

File: hw-16-q2.py Download hw-16-q2.py

Using the wind speed and the temperature, you can approximate the "feels like" temperature.
The formula is roughly: windchill = temperature - wind ** 0.7
Notice that the "**" operator is the "raising to a power" operator.
Use the formula to answer: What is the "feels like" temperature in Blacksburg?

Problem #3

File: hw-16-q3.py Download hw-16-q3.py

Using the formula from question 2. Answer the following question: Which city has the higher "feels like" temperature: Blacksburg or New York? Print the name of the city as response, or "Same" if appropriate. 
1458653400 03/22/2016 09:30am
Please include a description
Additional Comments:
Rating max score to > pts
Please include a rating title

Rubric

Find Rubric
Please include a title
Find a Rubric
Title
You've already rated students with this rubric. Any major changes could affect their assessment results.
 
 
 
 
 
 
 
     
Can't change a rubric once you've started using it.  
Title
Criteria Ratings Pts
This criterion is linked to a Learning Outcome Description of criterion
threshold: 5 pts
Edit criterion description Delete criterion row
5 to >0 pts Full Marks blank
0 to >0 pts No Marks blank_2
This area will be used by the assessor to leave comments related to this criterion.
pts
  / 5 pts
--
Additional Comments
This criterion is linked to a Learning Outcome Description of criterion
threshold: 5 pts
Edit criterion description Delete criterion row
5 to >0 pts Full Marks blank
0 to >0 pts No Marks blank_2
This area will be used by the assessor to leave comments related to this criterion.
pts
  / 5 pts
--
Additional Comments
Total Points: 5 out of 5
Previous
Next

Classwwork 16 - Python Reading Quiz 17