| CS182 -- Lab 3: Wind Chill |
|
|
OverviewIn this lab, you should develop skills using loops and conditional statements. ProceduresRecently 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 verify that the two equations describing the new method for calculating wind chill are consistent. If they are not, the program should indicate the temperature and wind speed at which the two methods produce the most different results. 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. Lab report (due 11:00pm, the day prior to week 5 lab)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 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. |
| © 2002 Dr. Christopher C. Taylor | Office: CC-27C | Phone: 277-7339 | Last Updated: Mon Jan 27 06:09:06 2003 |
| I am responsible for all content posted on these pages; MSOE is welcome to share these opinions but may not want to. | |||