<u>Answer:</u>
<em>Green computing is the process of using environmental friendly computers </em>and its associated components, accessories and other supporting devices.
<em>To be environmental friendly, we need all the mentioned method to be followed. </em>
- <em>Virtual computing</em> helps us to reduce the number of hardware that we are using.
- Whereas, <em>Grid computers</em> helps us to reduce the use of number of machines and thus supporting the environment in a right way.
- The last and the final is the<em> recycling process.</em> Any material that we use needs to be recycled effectively and also in an environmental friendly way.
- <em>Autonomic computing</em> uses eco-friendly system which in turn hugely support green computing.
Answer:
class WeatherForecast(object):
skies = ""
min = 0
max = 0
def get_skies(self):
return self.skies
def set_skies(self, value):
self.skies = value
def get_max(self):
return self.max
def set_max(self, value):
self.max = value
def get_min(self):
return self.min
def set_min(self, value):
self.min = value
def main():
obj1 = WeatherForecast()
obj1.set_skies("Skies1")
obj1.set_max(2)
obj1.set_min(0)
print("Calling get_skies(): ", obj1.get_skies())
print("Calling get_max(): ", obj1.get_max())
print("Calling get_min(): ", obj1.get_min())
main()
Explanation:
- Inside the WeatherForecast class, initialize variables for skies, minimum and maximum.
- Define the getter and setter method for the necessary variables inside the WeatherForecast class.
- Create an object of the class WeatherForecast.
- Call the getter functions of the class and display the results.
- Finally call the main function to test the program.
Your answer should be 18 if I’m not wrong
Answer:
Complete design is attached below.please have a look.
Explanation: