Note: Do in c++ programming language and also include a header file. Define a class TV representing a television and a friend class Remote representing a remotecontrol. TV has following private data members bool status (ON/OFF) int channel (current channel number) [maximum 250 minimum 0] int volume (current volume) [maximum 100 minimum 0] string TV_input (AV/cable) string tuning_mode (digital/analog) Create default and parametrized constructors of class TV A remote control should duplicate the controls built in to the television. To turn TV on or off, to increase and decrease volume, to navigate channels, change input from AV to cable and vice versa, and set tuning mode to digital or analog. The channel change function (int change_channel (int)) gets input as parameter the channel number you directly want to jump to and returns the channel number after changing channel channels. Write a main() to show all the functionality.
Note: Do in c++ programming language and also include a header file.
Define a class TV representing a television and a friend class Remote representing a remotecontrol. TV has
following private data members
bool status (ON/OFF)
int channel (current channel number) [maximum 250 minimum 0]
int volume (current volume) [maximum 100 minimum 0]
string TV_input (AV/cable)
string tuning_mode (digital/analog)
Create default and parametrized constructors of class TV
A remote control should duplicate the controls built in to the television. To turn TV on or off, to increase
and decrease volume, to navigate channels, change input from AV to cable and vice versa, and set tuning
mode to digital or analog. The channel change function (int change_channel (int)) gets input as parameter
the channel number you directly want to jump to and returns the channel number after changing channel
channels.
Write a main() to show all the functionality.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps