i need help finish this class for my project in c++ i’m making a smart streetlig
ID: 3721667 • Letter: I
Question
i need help finish this class for my project in c++
i’m making a smart streetlight
it’s just this one class i need done
//#include "sensors.h"
#include
using namespace std;
class Streetlight
{
public:
Streetlight(void);
virtual ~Streetlight(void);
public:
//street light gather information from sensors
Sensors _sensors;
public:
//the program will have three settings for he LEDs
//the settings will depend on the analysis
// of the information by program
int ledstatus; //0=off 1=dim 2=on 3=red
public:
double getStreetlight();
};
Streetlight::Streetlight(void)
{
ledstatus = 0; //keep it off by default
}
Streetlight::~Streetlight(void)
{
}
double Streetlight::getStreetlight()
{
return -1;
}
sensor.h
ation Streetlight Controller Aggregation GPS Streetlight tion L egation] getWeather0: double getLight0: double getTramico: double getStreetLighto: double setCommunication0: void ion Light Weather Traffic double Inheritance Inheritance Motion Humidity Temperature Association Association Sensors AssociationExplanation / Answer
#include "sensors.h"
#include
using namespace std;
class Streetlight
{
public:
Streetlight(void);
virtual ~Streetlight(void);
public:
//street light gather information from sensors
Sensors _sensors;
public:
//the program will have three settings for he LEDs
//the settings will depend on the analysis
// of the information by program
int ledstatus; //0=off 1=dim 2=on 3=red
public:
double getStreetlight();
};
Streetlight::Streetlight(void)
{
ledstatus = 0; //keep it off by default
}
Streetlight::~Streetlight(void)
{
}
double Streetlight::getStreetlight()
{
return -1;
}
sensor.h
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.