Assignment: Advanced ObjectOriented Programming Challenge
Problem Statement:
Consider a complex system for managing a futuristic space station with multiple interconnected modules. The space station is comprised of various components, such as energy generators, life support systems, communication arrays, and scientific research modules. Each component is represented as a class with specific attributes and behaviors.
Your task is to design and implement an objectoriented Python program that simulates the functionality of this space station management system. The program should consist of the following key components:
Module Base Class:
Create an abstract base class named Module that serves as the foundation for all space station modules.
Each module should have a unique identifier, a status active or inactive and a method to display its current status.
Energy Generator Module:
Implement a class named EnergyGenerator that inherits from the Module base class.
Energy generators have an additional attribute for power output and a method to generate power.
Life Support Module:
Create a class named LifeSupport that also inherits from the Module base class.
Life support modules have attributes for oxygen levels, CO levels, and methods to manage these levels.
Communication Module:
Implement a class named CommunicationArray that inherits from the Module base class.
Communication arrays have attributes for signal strength and methods to send and receive messages.
Research Module :
Create a class named ResearchModule that inherits from the Module base class.
Research modules have attributes for scientific equipment, data storage, and methods for conducting experiments.
Space Station Management System:
Design a class named SpaceStation that manages the overall functionality of the space station.
The space station should have methods to add and remove modules, check the overall status, and perform maintenance tasks.
Implement a system for interconnecting modules and managing power distribution among them.
Challenge Tasks :
Implement an advanced feature that challenges students' problemsolving skills. For example, devise a way to simulate unexpected events such as power failures, module malfunctions, or external threats, and require students to design a resilient system that can adapt to these challenges.
dont use chatgpt