package money_denominator;
import java.util.Scanner;
/**
* Money_Denominator.java
* Author : Mr. Jake R. Pomperada,MAED-IT
* Date : February 19, 2019 Tuesday
* 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