A simple program that I wrote using C++ that will ask the amount from the user and then our program will count how many one thousand, five hundred, two hundred, one hundred, fifty and twenty bills based here in the Philippines. The code is very easy to understand and use I hope you will find my work useful.
Add me at Facebook my address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com.
My mobile number here in the Philippines is 09173084360.
Sample Program Output
Program Listing
bills.cpp
#include <iostream>
#include <stdlib.h>
using namespace std;
int main()
{
int amt=0,thousand=0,five_hund=0,two_hundreds=0;
int hundreds=0,fifty=0,twentys=0;
cout << "Money Bill Denominator";
cout << "\n\n";
cout << "Enter 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 << "Display Report";
cout << "\n";
cout << "Number of 1000 Notes " << thousand << ".\n";
cout << "Number of 500 Notes " << five_hund << ".\n";
cout << "Number of 200 Notes " << two_hundreds << ".\n";
cout << "Number of 100 Notes " << hundreds << ".\n";
cout << "Number of 50 Notes " << fifty << ".\n";
cout << "Number of 20 Notes " << twentys << ".\n";
cout << "\n\n";
cout << "End of Program";
cout << "\n\n";
system("pause");
}