Question: USE Java to Programming Attributes o int tempF //Temp in F o int windSpeed//wind speed in mph; o int windChil A value which shows the
Attributes o int tempF //Temp in F o int windSpeed//wind speed in mph; o int windChil A value which shows the cooling effect of the wind in combination with low temperatures, in North America it is calculated based on the following formula Twe 35.74+0.6215T. - 35.75V06 0.4275T.V016 Twe= Wind chill index F V- Wind velocity, mph To Air temperature, F e bool severe If Wind Chill is less than-15'F, it is considered as sever Note: you need to decide carefully what is private and what is public and design constructors, set/get methods as needed Methods A no arguments constructor which initializes everything to some default values, windChill A two argument constructor which takes two arbitrary values and assigns them to tempF and windSpeed, Set and Get methods for the first two attributes; using set and get methods enables you to keep the object in a valid state, like Temperature should be between -50 and 150 Wind speed should be greater than 0 Changing tempF or windSpeed should update windChill and sever o double getWindChill) //Returns the value of windchill; boolean is Severe): I/ returns the severity
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
