Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a class that represents a system monitor. This class should be a singleton, since according to requirements there can only be one monitoring system.
Create a class that represents a system monitor. This class should be a singleton, since according to requirements there can only be one monitoring system. The monitor takes two inputs: a student and a target. If the target is equal to 100, the output should be the following: " is doing fine", where represents the student value. Submit the .py file. This is the client code which will be used to test the .py file: student = 'studenti' target = 100 monitor - Monitor(student, target) print(monitor.resulto) monitor2 = Monitor(student, target) print('Test passed:', monitor is monitor2) This is the expected result for the above test: studenti is doing fine Test passed: True
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started