#include "Television.h" // provides Television, cout, string using namespace std; // make std accessible int main() { Television sony; // uses the DEFAULT constructor cout << "Newly created television:" << endl; cout << sony << endl << endl; sony.channelUp(); cout << "After call to channelUp():" << endl; cout << sony << endl << endl; sony.togglePower(); cout << "After call to togglePower():" << endl; cout << sony << endl << endl; sony.setChannel(22); cout << "After call to setChannel(22):" << endl; cout << sony << endl << endl; sony.jumpPrevChannel(); cout << "After call to jumpPrevChannel():" << endl; cout << sony << endl << endl; sony.jumpPrevChannel(); cout << "After another call to jumpPrevChannel():" << endl; cout << sony << endl << endl; sony.channelUp(); cout << "After call to channelUp():" << endl; cout << sony << endl << endl; sony.jumpPrevChannel(); cout << "After call to jumpPrevChannel():" << endl; cout << sony << endl << endl; sony.toggleMute(); cout << "After call to toggleMute():" << endl; cout << sony << endl << endl; sony.volumeUp(); cout << "After call to volumeUp():" << endl; cout << sony << endl << endl; // try to max-out the volume for (int i=0; i<250; i++) sony.volumeUp(); cout << "After 250 calls to volumeUp():" << endl; cout << sony << endl << endl; // try to wrap-around the channel for (int i=0; i<250; i++) sony.channelDown(); cout << "After 250 calls to channelDown():" << endl; cout << sony << endl << endl; }