Goal: Learn to define classes with internal state, and getter and setter methods.
Assignment: As part of the USCRN network, stations keep track of air temperature, precipitation, and soil moisture. Write
the definition of a class named EnvironmentalStation that has the following methods:
An method that accepts a string argument and initializes the following attributes:
An attribute cityname that should be assigned the string argument;
An attribute airtemperature that should be assigned ;
An attribute precipitation that should be assigned ;
An attribute soilmoisture that should be assigned
A method setairtemperature that accepts an argument and assigns it to airtemperature.
A method setprecipitation that accepts an argument and assigns it to precipitation.
A method setsoilmoisture that accepts an argument and assigns it to soilmoisture
A method getcityname that returns the value of cityname;
A method getairtemperature that returns the value of airtemperature;
A method getprecipitation that returns the value of precipitation;
And a method getsoilmoisture that returns the value of soilmoisture.