Question
Please help! Please do this as fast as possible All Code in C++ Complete the weather class below, I need values for temperature and humitity
Please help!
Please do this as fast as possible
All Code in C++
Complete the weather class below, I need values for temperature and humitity that relate to certain weather formats (snowing, overcast, sunny, foggy, raining, ect.)
Specs for the weather class: "Sensors that can detect humidity and temperature will be able to analyzed and differentiate various weather conditions"
******Include many if else() loops, in order to get all types of weather conditions.******
The following is the format of the weather class so far(Note that the ????? are values that need to be plugged in):
public class Weather { public double getWeather() { Double humid = humidity:weather();
Double temp = temperature:weather();
if(humid??????&&temp????????)
{ return 0; //Raining
}
else if(?????????)
{
return 1; //Snowing
}
}
}
Aggregation Streetlight Controller GPS Streetlight Aggregation +getWeather0: double +getLight0: double Aggregation getTraffic0: +getStreetLight0: double + setCommunication0: void double Aggregation Light Weather Communication Traffic getLight0: double Inheritance Inheritance Motion Humidity Temperature Association AssociatinSensors Association Aggregation Streetlight Controller GPS Streetlight Aggregation +getWeather0: double +getLight0: double Aggregation getTraffic0: +getStreetLight0: double + setCommunication0: void double Aggregation Light Weather Communication Traffic getLight0: double Inheritance Inheritance Motion Humidity Temperature Association AssociatinSensors Association
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started