Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.)

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

OCA Oracle Database SQL Exam Guide Exam 1Z0-071

Authors: Steve O'Hearn

1st Edition

1259585492, 978-1259585494

More Books

Students also viewed these Databases questions

Question

Question What are the advantages of a written bonus plan?

Answered: 1 week ago