Question: Exercise#1 Write down the java code of the following UML class diagram TV channel: int volume Level: int on: boolean The current channel (1 to

Exercise#1 Write down the java code of the following UML class diagram TV channel: int volume Level: int on: boolean The current channel (1 to 120) of this TV. The current volume level (1 to 7) of this TV. Indicates whether this TV is on/off. The + sign indicates a public modifier. +TV (1) +turnon (): void +turnoff(): void +setChannel (newChannel: int) : void +setvolume (newvolume Level: int) : void +channelUp(): void +channelDown(): void +volume Up (): void +volume Down (): void Constructs a default TV object. Turns on this TV. Turns off this TV. Sets a new channel for this TV. Sets a new volume level for this TV. Increases the channel number by 1. Decreases the channel number by 1. Increases the volume level by 1. Decreases the volume level by 1. Exercise#2 Write a program to print Fibonacci series from 1 to n (entered by user)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
