//************************************** // Name: Money Bill Denominator in Java // Description:Here is a program that I wrote in Java to ask the amount of money from the user and then our program will count how many one thousand, five hundred, two hundred, one hundred, fifty, twenty bills and ten, five and one peso coins based here in the Philippine currency. 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 in the following email address for further details. If you want to advertise on my website kindly contact me also in my email address also. Thank you. My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com. My mobile number here in the Philippines is 09173084360. My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675. Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price. My personal website is http://www.jakerpomperada.com // By: Jake R. Pomperada // // // Inputs:None // // Returns:None // //Assumes:None // //Side Effects:None //************************************** package money_denominator; import java.util.Scanner; /** * Money_Denominator.java * Author : Mr. Jake R. Pomperada,MAED-IT * Date: February 19, 2019Tuesday * http://www.jakerpomperada.com * jakerpomperada@jakerpomperada.com * jakerpomperada@gmail.com */ public class Money_Denominator { public static void main(String[] args) { int amount=0,thousand=0,five_hundreds=0,two_hundreds=0; int hundreds=0,fifty=0,twentys=0,tens=0,fives=0,ones=0; Scanner input = new Scanner(System.in); System.out.println(); System.out.print("\tMoney Bill Denominator"); System.out.println("\n"); System.out.print("\tEnter an Amount : "); amount = input.nextInt(); thousand = amount/1000; amount = amount%1000; five_hundreds = amount/500; amount = amount%500; two_hundreds = amount/200; amount = amount%200; hundreds = amount/100; amount = amount%100; fifty = amount/50; amount = amount%50; twentys = amount/20; amount = amount%20; tens = amount/10; amount = amount%10; fives = amount/5; amount = amount%5; ones = amount/1; amount = amount%1; System.out.print(" \n"); System.out.print("\t===== Display Report ====="); System.out.println("\n"); System.out.print("\tNumber of 1000 Note(s) : "+ thousand + "\n"); System.out.print("\tNumber of 500 Note(s): "+ five_hundreds + "\n"); System.out.print("\tNumber of 200 Note(s): "+ two_hundreds + "\n"); System.out.print("\tNumber of 100 Note(s): "+ hundreds + "\n"); System.out.print("\tNumber of 50 Note(s): "+ fifty + "\n"); System.out.print("\tNumber of 20 Note(s): "+ twentys + "\n"); System.out.print("\tNumber of 10 Coin(s): "+ tens + "\n"); System.out.print("\tNumber of 5 Coin(s): "+ fives + "\n"); System.out.print("\tNumber of 1 Coin(s): "+ ones + "\n"); System.out.print("\n\n"); System.out.print("\tEnd of Program"); System.out.print("\n\n"); } } // End of Code