This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Dato, Mark Rovic N. | |
Gatbonton, Elvin M. | |
Lansangan, Julianne Elyse J. | |
Raña, Neve Herschell L. | |
Salvador, Marion Robin | |
Villanueva, Zuriel G. | |
October 10 2025 | |
MidGrpDatoGatbontonLansanganRañaSalvadorVillanueva |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
public class Main { | |
//Bills the ATM can dispense via an int array start with largest bill because of the calculations | |
private static final int[] DENOMINATIONS = {1000, 500, 100}; | |
//Min and Max amount the ATM can handle | |
private static final int MIN_AMOUNT = 100; | |
private static final int MAX_AMOUNT = 50000; |