#include #include "WeatherPrediction.h" using namespace std; void WeatherPrediction::setCurrentTempFahrenheit(int inTemp) { mCurrentTempFahrenheit = inTemp; } void WeatherPrediction::setPositionOfJupiter(int inDistanceFromMars) { mDistanceFromMars = inDistanceFromMars; } int WeatherPrediction::getTomorrowTempFahrenheit() { // Obviously, this is nonsense return (mDistanceFromMars / 1000) + mCurrentTempFahrenheit; } double WeatherPrediction::getChanceOfRain() { // Obviously, this is nonsense too return 0.5; } void WeatherPrediction::showResult() { cout << "Result: " << (getChanceOfRain() * 100) << " chance." << " Temp. " << getTomorrowTempFahrenheit() << endl; } /* int main() { WeatherPrediction p; p.setCurrentTempFahrenheit(24); p.setPositionOfJupiter(80); p.showResult(); } */