This commit is contained in:
Ali Can Zeybek
2025-01-09 22:16:38 +03:00
parent ef0043ada8
commit d854e0703e
7 changed files with 184 additions and 71 deletions

View File

@@ -33,8 +33,12 @@ public class ATM {
}
public Message verifyInputAmount() {
// TODO - implement ATM.verifyInputAmount
throw new UnsupportedOperationException();
Message msg = new Message();
if (minimumAmount >= totalFund) {
msg.require_change = true;
}
msg.msg = "WE ARE POOR COME BACK LATER <3";
return msg;
}
public Time checkTime() {
@@ -91,4 +95,5 @@ public class ATM {
this.totalFund = totalFund;
}
}