Lee_assig3 - Dimes = Pennies/10 Pennies = Pennies 10 Nickles = Pennies/5 Pennies = Pennies 5 cout<<"Your money consists of"<<endl

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

View Full Document Right Arrow Icon
Sheet1 Page 1 #include<iostream> #include<cmath> using namespace std //Cheu Lee int main () { // Receive the amount double amount cout<<"Enter an amount in double, for example 11.56: " cin>> amount int Dollars, Quarters, Dimes, Nickles, Pennies Pennies=amount*100 Dollars = Pennies/100 Pennies = Pennies % 100 Quarters = Pennies/25 Pennies = Pennies % 25
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Dimes = Pennies/10 Pennies = Pennies % 10 Nickles = Pennies/5 Pennies = Pennies % 5 cout<<"Your money consists of: "<<endl cout<<"Dollars<<"dollars"<<endl cout<<"Quarters<<"quarters"<<endl cout<<"Dimes<<"dimes"<<endl cout<<"Nickles<<"nickles"<<endl cout<<"Pennies<<"pennies"<<endl return 0 }...
View Full Document

This note was uploaded on 05/16/2010 for the course CISCO EST61 taught by Professor Miller during the Spring '10 term at Fresno City College.

Ask a homework question - tutors are online