I want you to implement the class and methods for the below requirements.
1. Is the response contains 4 days of data
2. Is all the forecast in the hourly interval ( no hour should be missed )
3. For all 4 days, the temp should not be less than temp_min and not more than temp_max
4. If the weather id is 500, the description should be light rain
5. If the weather id is 800, the description should be a clear sky
Answers
Answered by
0
Requirements:
Is the response contains 4 days of data
Is all the forecast in the hourly interval ( no hour should be missed )
For all 4 days, the temp should not be less than temp_min and not more than temp_max
If the weather id is 500, the description should be light rain
If the weather id is 800, the description should be a clear sky
Explanation:
class abc
{
private:
int N;
public:
Interger(int n);
int getInterger();
};
#include "Interger.h"
Interger::Interger() : N(0) { }
Interger::Interger(int n): N(n) {}
int Interger::getInterger()
{
return N;
}
#include <iostream>
#include "Interger.h"
using namespace std;
int main()
{
Interger n(20);
cout << n.getInterger() << endl;
return 0;
}
Similar questions