Rec06 - #include #include #include...

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.

This note was uploaded on 04/08/2008 for the course EN 1014 taught by Professor Collins during the Spring '08 term at NYU Poly.

Page1 / 2

Rec06 - #include #include #include...

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