Course Notes

Posted on Feb 22  2020

Updated on March 17  2024


Quick Links
Intro to Programming
Python Resources
Houdini Resources


Due Dates
Submission Guidelines
Expectations


E1 - Quilt
E2 - Hurricane
E3 - Random Art
E4 - Houdini Script


Additional Examples


copyright © Deborah R. Fowler

VSFX 160 Exercise

Deborah R. Fowler



VSFX 160 - Hurricane Tracker

Posted on June 18  2018
Updated on March 17  2024


This assignment was designed based on Nifty Assignments 2018 - Stanford Computer Science SIGCSE.
Hurricane Tracker by Phil Ventura
http://nifty.stanford.edu/2018/ventura-hurricane-tracker/nifty-hurricanes.html

The version you have been assigned is below:

Goals:
Understanding loops, file i/o, string manipulation and a start to graphics. The student will write a program to process real-world hurricane data and animate the path of hurricanes.

Requirements:

You are to write the code that animates the path of the hurricane along its track, while marking on the map the storm category at each point.

Files are supplied including:

DOWNLOAD the updated starter zip file and unzip (right click and select Extract Here)

Open up hurricane.py in IDLE.The setup is completed for you in hurricane_setup. It is your task to use the turtle t to create an animation of the hurricane's path. DO NOT modify hurricane_setup. It has been set up to:



Included in the start zip files are txt data files.

In the UpdatedStarterFiles folder you will find .txt files with the name of a hurricane.
Each file has the following data format:

Data format is as follows. Each column is separated by commas. You can take a look in IDLE or in any file editor to view.
The data you will need is Lat, Lon and Wind (mph), Storm Type which will then require you to assign the Category value
Lat, Lon will dictate position, category can be printed (note no value if Tropical Storm or Depression etc so anything not a "Hurricane" will be assigned zero) and wind can be used as a rough representative for turtle speed.




An example of what the results may look like is shown from the original https://youtu.be/c2uRG42M_nc

         

Using one of the files, say Ian2022.txt your hurricane function should show the hurricane path and include the following:
Considerations:
MISSING IMAGE
HINT:



Submission guidelines:

The project will be submitted to your dropbox.com folder (also called a directory) named:

S24_V160_E2_LastnameFirstname_Title/

The directory should contain the following:

Remember to test your files before handing in! Your files will be tested on the data provide, so no hand editing data.


Create a version where the user is allowed to input the file name and the hurricane paths or be able to drawn all in one window:
Other features - labels, continue until the user decides to quit, labels and word categories, options to animate or not, show debug data or not and so on.