谁帮忙用j**a编写atm的程序啊

大众点评结婚指南 2024-05-16 15:35:34
最佳回答
实在是没事干,看到练习四做到练习四,就看不下去了,给你这么多,剩下的让大侠们来帮你吧!account类public class account { private long id; private int password; private string name; private string personid; private string email; private double balance; public account(){ } public long getid() { return id; } public void setid(long id) { th**.id = id; } public int getpassword() { return password; } public void setpassword(int password) { th**.password = password; } public string getname() { return name; } public void setname(string name) { th**.name = name; } public string getpersonid() { return personid; } public void setpersonid(string personid) { th**.personid = personid; } public string getemail() { return email; } public void setemail(string email) { th**.email = email; } public double getbalance() { return balance; } public void setbalance(double balance) { th**.balance = balance; } public account(long id,int password,string name,string personid,string email,double balance){ th**.id = id; th**.password = password; th**.name = name; th**.personid =personid; th**.email =email; th**.balance = balance; } public void deposit(double money){ th**.balance = balance + money; } public void withdraw(double money){ th**.balance = balance - money; }}储蓄类public class s**ingaccount extends account { public s**ingaccount(){ super(); } public s**ingaccount(long id,int password,string name,string personid,string email,double balance){ super.setbalance(balance); super.setemail(email); super.setid(id); super.setname(name); super.setpassword(password); super.setpersonid(personid); } @override public void withdraw(double money) { if(money<=super.getbalance()){ super.withdraw(money); } }}信用类public class creditaccount extends account { private double ceiling; public double getceiling() { return ceiling; } public void setceiling(double ceiling) { th**.ceiling = ceiling; } public creditaccount(){ super(); } public creditaccount(long id,int password,string name,string personid,string email,double balance,double ceiling){ super.setbalance(balance); super.setemail(email); super.setid(id); super.setname(name); super.setpassword(password); super.setpersonid(personid); th**.ceiling = ceiling; } @override public void withdraw(double money) { if(money>super.getbalance()){ if(th**.ceiling>=(money-super.getbalance())){ super.setbalance((th**.ceiling+super.getbalance()-money)*-1); } }else{ super.withdraw(money); } }}银行类public class bank { private int accountnum; private account[] account; public int getaccountnum() { return accountnum; } public void setaccountnum(int accountnum) { th**.accountnum = accountnum; } public account[] getaccount() { return account; } public void setaccount(account[] account) { th**.account = account; } public account openaccount(long id,int password,string name,string personid,string email,double balance){ account acc = new account(id,password,name,personid,email,balance); return acc; } public account login(long id,int password){ for(int i=0;i
汇率兑换计算器

类似问答
  • 谁会编写期货用的自动交易程序
    • 2024-05-16 06:19:07
    • 提问者: 未知
    自动交易 收益很难保证 基本上就是在帮期货公司刷手续费 你的亏损就是来自于手续费!
  • 有谁会编写成交量加权的macd公式?求大神帮忙。
    • 2024-05-16 13:24:38
    • 提问者: 未知
    {macd加权} {加权平滑异同平均} dif:wma(close,12)-wma(close,26);dea:wma(dif,9);macd:(dif-dea)*2,colorstick;
  • 帮忙编写tdx选股公式
    • 2024-05-16 00:59:05
    • 提问者: 未知
    好像写过了。下载最新的5分钟数据,选股周期设为5分钟进行选股。ma(c,5)>ref(ma(c,5),1) and ma(c,10)>ref(ma(c,10),1) and ma(c,20)>ref(ma(c,20),1) and ma(c,30)>ref(ma(c,30),1) and ma(c,40)>ref(ma(c,40),1) and ma(c,50)>...
  • 编写一个vb程序
    • 2024-05-16 12:47:03
    • 提问者: 未知
    在d盘创建一个txt文本文件,名字是fenshu。并在文本文件里面写入分数以英文格式的逗号“,”隔开。如87,76,46,99,100,63创建好之后就可以运行这段代码了。不过不明白的是你是要只统计59分的还是59分及以下,99分那个也是的。我下面写的是包括统计59分及以下的,如果是只统计某一个数,就和100分的那个是一样的。dim m,a(6) as integeropen "d:\f...
  • vb 编写程序
    • 2024-05-16 18:39:51
    • 提问者: 未知
    private sub command1_click()dim n as integer,s as longn=text1.textfor i=1 to n if i mod 3 =0 and i mod 5=0 then s=s+i end if next itext2.text=send subprivate sub command2_click()end end sub已经试过的,可以运行的...
  • 用vb编写程序。
    • 2024-05-16 11:34:27
    • 提问者: 未知
    方法一:private sub command1_click() form1.cls dim i1 as integer, i2 as integer, i3 as integer, i4 as integer, i5 as integer dim cl**t as string for i1 = 65 to 70 for i2 = i1 + 1 to 70 ...
  • qt编写程序,编译该程序出现未定义变量
    • 2024-05-16 21:30:42
    • 提问者: 未知
    命名空间不对,或者定义冲突
  • 急求一个j**a编写的拼图游戏的源程序和源代码?
    • 2024-05-16 10:54:36
    • 提问者: 未知
    源程序要直接能打开的,代码不要太长好白的提问啊!!!!
  • 请帮忙用财务指标编写选股公式
    • 2024-05-16 00:38:54
    • 提问者: 未知
    a:=finance(18)>2;b:=finance(32)>1;d:=finance(33)/finance(34);a and b and d>0.08 and ref(d,1)>0.08 and ref(d,2)>0.08;
  • 哪些是 用c语言 编写的程序
    • 2024-05-16 23:01:09
    • 提问者: 未知
    cobol(common business oriented language)—是数据处理领域最为广泛的程序设计语言。cobol历史 cobol(common business oriented language)是第一个广泛使用的高级编程语言。在企业管理中,...
汇率兑换计算器

热门推荐
热门问答
最新问答
推荐问答
新手帮助
常见问题
房贷计算器-九子财经 | 备案号: 桂ICP备19010581号-1 商务联系 企鹅:2790-680461

特别声明:本网为公益网站,人人都可发布,所有内容为会员自行上传发布",本站不承担任何法律责任,如内容有该作者著作权或违规内容,请联系我们清空删除。