Weather
class contains a function for calculating the
wind chill value in North America (NA). In the future, it may contain other
functions as well.
The system must satisfy the following operational requirements:
OR-1
The class must have a public static
function named
windChillNA()
.
OR-2
The windChillNA()
function must return a
double
value.
OR-3
The windChillNA()
function must have two
formal parameters, a double
that will contain
the air temperature in degrees Fahrenheit followed by a
double
value that will contain the
wind speed (in miles per hour).
OR-4
The windChillNA()
function must return the
wind chill value for North America in situations in which the
air temperature and the wind speed have appropriate values
OR-5
The windChillNA()
function must return the
air temperature it is passed in situations in which either the
air temperature or the wind speed does not have an
appropriate value.
OR-6
The class must NOT have a main()
function.
Copyright 2013