Question: SOLVE WTH PYTHON ONLY PYTHON PYTHON 2. (25 pts) Please check the diagram which describes a scenario for some states of a TeaCup object. methods

SOLVE WTH PYTHON ONLY PYTHON PYTHONSOLVE WTH PYTHON ONLY PYTHON PYTHON 2. (25 pts) Please check the

2. (25 pts) Please check the diagram which describes a scenario for some states of a TeaCup object. methods START State 1: Volume = 0.1 liters Temperature - 30 C Lemon false State 2: Volume - 0.1 liters Temperature 50 Lemon-felse methodA method methode State3 Volume 0,2 liters Temperature -30C Lemon-false State 4: Volume -0,2 ters Temperature -30C Lemon=true STOP method O Please implement the TeaCup class with necessary attributes that will help you define possible steps. Please implement the necessary methods (methodA, methodB, methodC, methodD and methodE). Please rename them so that their behavior can be better understood by the users of the class. o Implement a report() method in the TeaCup class which prints information about object's state. o Implement a test function which simulates construction of an object (in State 1) and calls methodA, methodB, methodc, methodD, methodE, methodD sequence. Please verify your state changes by assertions

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!