package PROJECT_ATM;
import [Link];
import [Link].*;
public class Project_1 {
// static String insert;
// static int accType;
// static int totalAmount = 20000;
static Scanner sc = new Scanner([Link]);
static int entAmount = [Link]();
public static void main(String[] args) {
[Link](" WEL-COME TO BOM ");
[Link](" PLEASE INSERT YOUR CARD");
Scanner sc = new Scanner([Link]);
String insert = [Link]();
if ([Link]("YES")) {
[Link](" PLEASE WAIT WHILE YOUR TRANSACTION IS
PROCESSING");
[Link]("DO NOT REMOVE CARD");
} else {
[Link](" PLEASE TRY AGAIN");
[Link](" YOUR PIN IS WRONG");
}}
}/*
while (([Link]("YES"))) {
[Link]("***** SERVICES *****");
[Link]("1. WITHDRAW");
[Link]("2. BALANCE CHECK");
[Link]("3. NEW USER");
[Link]("4. FORGET PASSWORD");
[Link]("**** *****");
break;
}
}
[Link](" please Wait");
[Link](" enter service num");
int accType = [Link]();
if (accType == 1) {
String acc = "SAVING";
}
if (accType == 2) {
String acc = "CURRENT";
}
if (accType == 3) {
String acc = "Change password"
}
if (accType == 4) {
String acc = "new user";
}
}
IF ([Link]("YES")){
[Link](" PLEASE WAIT WHILE YOUR TRANSACTION IS
PROCESSING");
[Link]("DO NOT REMOVE CARD");}
int pin = [Link]();
if(pin == 0000){
[Link](" PASSWORD IS ACCEPTED ");
}
else{
[Link](" PLEASE TRY AGAIN");
[Link](" YOUR PIN IS WRONG");
if (accType == 1) {
[Link](" enter amount for withdraw");
int entAmount = [Link]();
if (entAmount > totalAmount) {
[Link](" INSUFFICIENT BALANCE");}
if (entAmount < totalAmount) {
[Link]("*** PROCESSING***");
totalAmount = (totalAmount-entAmount);
[Link](entAmount+"AMOUNT HAS BEEN DEBITED FROM
YOUR ACCOUNT ******133");
[Link]("YOUR CURRENT BALANCE IS");
[Link](totalAmount);
}
}
if (accType == 2) {
[Link](" enter amount for withdraw");
int entAmount = [Link]();
if (entAmount < totalAmount) {
[Link](" INSUFFICIENT BALANCE");}
if (entAmount < totalAmount) {
[Link]("*** PROCESSING***");
totalAmount = totalAmount - entAmount;
[Link](totalAmount);
}
}
if (accType == 1 && accType <= totalAmount) {
[Link](" enter amount for withdraw");
[Link](entAmount + "AMOUNT HAS BEEN DEBITED FROM YOUR
ACCOUNT ******133");
[Link]("YOUR CURRENT BALANCE IS");
[Link](totalAmount);
}
if (accType == 1 && accType >= totalAmount) {
[Link](" INSUFFICIENT BALANCE");
}
if (accType == 2 && accType <= totalAmount) {
[Link](" enter amount for withdraw");
[Link](entAmount + "AMOUNT HAS BEEN DEBITED FROM YOUR
ACCOUNT ******133");
[Link]("YOUR CURRENT BALANCE IS");
[Link](totalAmount);
}
if (accType == 2 && accType >= totalAmount) {
[Link](" INSUFFICIENT BALANCE")
}
}
}*/