Question: language is python Question 1 (50 points): For this question, create a Television class. To model the embedded system for a television, you need to

language is pythonlanguage is python Question 1 (50 points): For this question, create a

Question 1 (50 points): For this question, create a Television class. To model the embedded system for a television, you need to associate the user's physical interactions (e.g., pressing buttons) as method calls. For simplicity use a combination of print statements and return values to simulate form of feedback that the system provide to the customer The following figure shows the class diagram for the Television class. Television powerOn volume muted channel -nit_1) channe!Up() togglePower channelDown( toggleMute) setChannel(number) volumeDownO volumeUpO jumpPrevChannelO str0 Figure 1- A Television class diagram All television instances are initially created with the same "factory setting", so as the designer of the class you can have your choice for these values. For example, a newly minted television has the power off, once turned on, it will be unmuted with a volume level of 5 and turned to channel 2. Your class should have all the specified attributes, as shown the class diagram (see Figure 1). You also need to provide complete definitions for all the class methods. Note that the str method needs to be overridden in order to display the current observable settings of a television. For example, this method will display the following message "Power setting is currently on or off In your program instantiate two objects of type Television and invoke all the methods for each object Question 1 (50 points): For this question, create a Television class. To model the embedded system for a television, you need to associate the user's physical interactions (e.g., pressing buttons) as method calls. For simplicity use a combination of print statements and return values to simulate form of feedback that the system provide to the customer The following figure shows the class diagram for the Television class. Television powerOn volume muted channel -nit_1) channe!Up() togglePower channelDown( toggleMute) setChannel(number) volumeDownO volumeUpO jumpPrevChannelO str0 Figure 1- A Television class diagram All television instances are initially created with the same "factory setting", so as the designer of the class you can have your choice for these values. For example, a newly minted television has the power off, once turned on, it will be unmuted with a volume level of 5 and turned to channel 2. Your class should have all the specified attributes, as shown the class diagram (see Figure 1). You also need to provide complete definitions for all the class methods. Note that the str method needs to be overridden in order to display the current observable settings of a television. For example, this method will display the following message "Power setting is currently on or off In your program instantiate two objects of type Television and invoke all the methods for each object

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!