This is not a current assignment. If you are currently enrolled in SE1010, do not do this assignment expecting to receive credit for it.
In 2001 the United States and Canada's meteorological services revised their wind chill calculations.
Two versions of the new calculation are listed below:
where
TC_wchill is the perceived temperature in degrees Celsius
TC is the actual temperature in degrees Celsius, and
vk is the wind speed in km/h
and
where
TF_wchill is the perceived temperature in degrees Fahrenheit
TF is the actual temperature in degrees Fahrenheit, and
vm is the wind speed in mph
The old wind chill calculation was:
where
TC_wchill_old is the perceived temperature in degrees Celsius
TC is the actual temperature in degrees Celsius
vk is the wind speed in km/h, and
vr is the reference speed in km/h (typically 6-8)
Create a class shown in the UML diagram below. In addition to performing the calculations described in above you must implement two additional methods that convert from degrees Celsius to degrees Fahrenheit and vice versa. Implement the main method so that your program does the following:
Asks the user to enter a temperature in degrees Celsius and a wind speed in km/h.
Displays the temperature in degrees Fahrenheit and wind speed in mph.
Calculates the perceived temperature using all three wind chill calculations and displays the results of each calculation in degrees Celsius.
For detailed descriptions of each of these methods, see this Javadoc
Complete the sequence diagram below and show it to your instructor before you begin coding.
Upon completion, demonstrate your program to your instructor.
Record the time you spent on this assignment in FAST, and submit your assignment as specified by your instructor.