Professional Documents
Culture Documents
Assignment 1: Name:Syed Ather ID: Sp20-bscs-0007
Assignment 1: Name:Syed Ather ID: Sp20-bscs-0007
NAME:SYED ATHER
ID: Sp20-bscs-0007
SECTION:AM
package javaapplication15;
/**
* @author Sp20-BSCS-0007
*/
class ATM{
fixedacount=b;
balance=a;
return balance;
withdraw=b;
return withdraw;
deposit =a;
return deposit;
}
savingacount=a;
return savingacount;
balance=c;
return savingacount;
withdraw=a;
}
public int getswithdraw(){
return withdraw;
balance=0;
return balance;
currentacount =a;
return currentacount;
}
balance=n;
return balance;
withdraw =a;
return withdraw;
}
public void setdeposit(int b){
deposit =b;
return deposit;
a.getcurrentacount();
a.printcurrentAccount();
a.printbalance();
a.setbalance(0);
a.printbalance();
a.printdeposit();
a.setdeposit(122);
a.printwithdraw();
a.setwithdraw(1);
a.getsavingacount();
a.printsavingacount();
a.printbalance();
a.setbalance(0);
a.printdeposit();
a.setdeposit(12);
a.printwithdraw();
a.setwithdraw(1);
a.getfixedacount();
a.printfixedacount();
a.printbalance();
a.setbalance(15000);
a.printbalnce();
a.printdeposit();
a.setdeposit(13);
a.printwithdraw();
a.setwithdraw(0);