|
Overview
In this lab, you should develop skills using loops and conditional statements. Procedure
Recently the United States and Canada's meteorological services revised their wind chill calculations. Two versions of the new calculation are listed below: Twind_chill = 13.12 + 0.6215*T - 11.37*(v0.16) + 0.3965*T*(v0.16) where
and Twind_chill = 35.74 + 0.6215*T - 35.75*(v0.16) + 0.4275*T*(v0.16) where
Write a program that will indicate the temperature and wind speed at which the two methods produce the most different results. You should display the windspeed, temperature, and temperature difference in both units. Note:
Just for fun (optional)
The old wind chill calculation was: Twind_chill = 33 - ((18.97*sqrt(v) - v + 37.62)/(18.97*sqrt(vr) - vr + 37.62)*(33 - T) where
Modify your program so that it will also find the temperature and wind speed at which the old and the new methods for modelling wind chill produce the most different results. If you are looking for an additional challenge, feel free to add functionality to the program, e.g., generate a wind chill table that is formatted nicely, allow the user to enter a temperature and wind speed and display the perceived temperature, etc. Another idea would be to modify your program so that it produced a comma delimited data file (with the .csv extention) that could be loaded into Microsoft Excel to produce one or more graphs describing the relationship between temperature, wind speed, and perceived temperature. Lab report (due 11:00pm, the day prior to week 4 lab)
Here is a template file to use as a starting point for this report. The lab report should be in your own words and self-contained. By self-contained I mean that it should be possible for someone to understand what you did and why without seeing anything other than your report. Your report should include:
As with any report you submit, correct spelling and grammar are required. In addition, your report should be submitted electronically following the Electronic submission guidelines. (You may wish to consult the XML help video and/or sample report before submitting your report.) Be sure to keep copies of all your files, in case something gets lost. It may be wise to keep a diskette backup as well. Your grade will depend on quality of design, clarity of code and documentation, as well as whether your program produces the correct results. If you have any questions, consult your instructor. Acknowledgment
This laboratory assignment was developed by Dr. Chris Taylor. |
© 2001-2015 Dr. Christopher C. Taylor | Office: CC-36C | Phone: 277-7339 |