A simple money bill denominator that I wrote using C++ programming language.
I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details. If you want to advertise on my website, kindly contact me also at my email address also. Thank you.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
My mobile number here in the Philippines is 09173084360.
Program Listing
// money.cpp
// Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
// www.jakerpomperada.blogspot.com and www.jakerpomperada.com
// jakerpomperada@gmail.com
// Bacolod City, Negros Occidental Philippines
// Dev C++ Version 5.11
#include <iostream>
using namespace std;
int main()
{
int amt=0,thousand=0,five_hund=0,two_hundreds=0;
int hundreds=0,fifty=0,twentys=0;
cout << "\n\n";
cout << "\tMoney Bill Denominator in C++";
cout << "\n\n";
cout << "\tEnter an Amount : ";
cin >> amt;
thousand = amt/1000;
amt = amt%1000;
five_hund = amt/500;
amt = amt%500;
two_hundreds = amt/200;
amt = amt%200;
hundreds = amt/100;
amt = amt%100;
fifty = amt/50;
amt = amt%50;
twentys = amt/20;
amt = amt%20;
cout << "\n\n";
cout << "\tDisplay Report";
cout << "\n\n";
cout << "\tNumber of PHP 1000 Notes : " << thousand << ".\n";
cout << "\tNumber of PHP 500 Notes : " << five_hund << ".\n";
cout << "\tNumber of PHP 200 Notes : " << two_hundreds << ".\n";
cout << "\tNumber of PHP 100 Notes : " << hundreds << ".\n";
cout << "\tNumber of PHP 50 Notes : " << fifty << ".\n";
cout << "\tNumber of PHP 20 Notes : " << twentys << ".\n";
cout << "\n\n";
cout << "\tEnd of Program";
cout << "\n\n";
system("pause");
}
No comments:
Post a Comment