Display - // tuner frequency void...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
// DISPLAY.CPP // Display class implementation / #include "display.h" # // Constructor Display::Display() :power(OFF), MyValue(0.0) { } // Method that turns on the radio's display void Display::On() { power = ON; } // Method that turns off the radio's display void Display::Off() { power = OFF; } // Method that creates the message for displaying the
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: // tuner frequency void Display::FrequencyToDisplay(double value) { MyValue = value; } // Method that displays the tuner frequency void Display::DisplayMessage(ostream & out) { out.setf(ios::fixed); // prevent E-notation out << setprecision(1) << MyValue << " MHz"; out.unsetf(ios::fixed); }...
View Full Document

This note was uploaded on 06/20/2011 for the course COMPUTER 12 taught by Professor Aymanboghdady during the Spring '11 term at American College of Computer & Information Sciences.

Ask a homework question - tutors are online