Rec06 - #include <iostream> #include <string>...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 #include <iostream> #include <string> #include <iomanip> using namespace std const string TOP( "/-----------------------------------------------\\\n" ) const string BOT( "\\-----------------------------------------------/\n" ) "| We dispense only 74, 32 and 6 cent stamps. |\n" "| We give only coins in change - (no bills). |\n" ) const string THNKS( "----- Thank you for using our stamp machine -----\n" ) const unsigned PENNIES_PER_DOLLAR( 100 ) const unsigned PENNIES_PER_QUARTER( 25 ) const unsigned PENNIES_PER_DIME( 10 ) const unsigned PENNIES_PER_NICKEL( 5 ) const double COST_OF_74_CENT_STAMP( 0.74 ) const double COST_OF_32_CENT_STAMP( 0.32 ) const double COST_OF_6_CENT_STAMP( 0.06 ) int main() { string name unsigned qnt74stampsPurchased, qnt32stampsPurchased, qnt6stampsPurchased u // ------------------------------------------------------------------------ // processes only one user // ------------------------------------------------------------------------
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

Rec06 - #include &lt;iostream&gt; #include &lt;string&gt;...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online