Question: Lab 4 : Create a Python project called Everglades _ FirstName _ LastName or Lab 4 _ FirstName _ LastName. Remember to include comments summarizing
Lab : Create a Python project called EvergladesFirstNameLastName or LabFirstNameLastName. Remember to include comments summarizing the program.
The exhibits are managed with an Exhibit class. Each exhibit will have a name, temperature, and humidity.
Functions must also be included to access and modify these properties. The str function will return a string describing the state of an Exhibit object. Use the example output as a reference for what to include in this string.
The everglades are a specific exhibit that will be managed with an Everglades class that inherits from Exhibit. In addition to the inherited properties, the everglades will also have a water level. Use the default values everglades and for the name, temperature, and humidity. The water level will be a parameter for the Everglades constructor.
There must also be a function to access and a function to modify the water level. The str function will return a String describing the state of an Everglades object. Use the example output as a reference for what to include in this String.
The main function will include object constructions for each class. Construct an Exhibit object with the values arctic tundra and for the name, temperature, and humidity, respectively. Construct an Everglades object with the value for the water level. Print the state of each object to the console using the str method.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
