没有合适的资源?快使用搜索试试~ 我知道了~
ATM源代码想要的可以要哦
需积分: 10 15 下载量 45 浏览量
2010-06-30
20:50:03
上传
评论
收藏 2KB TXT 举报
温馨提示
![preview](https://dl-preview.csdnimg.cn/txt_preview/2504353/2504353_thumbnail_1.jpg?x-oss-process=style/thumbnail)
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
试读
4页
ATM源代码使用字符用户界面。当输入给定的卡号和密码(初始卡号和密码为123456)时,系统能登录ATM柜员机系统,用户可以按照以下规则进行: 1、查询余额:初始余额为10000元 2、ATM取款:每次取款金额为100的倍数,总额不超过5000元,支取金额不允许透支。 3、ATM存款:不能出现负存款。 4、修改密码:新密码长度不小于6位,不允许出现6位完全相同的情况,只有旧密码正确,新密码符合要求,且两次输入相同的情况下才可以成功修改密码。 (卡号密码余额放到文件中)
资源推荐
资源详情
资源评论
![doc](https://img-home.csdnimg.cn/images/20210720083327.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
import java.util.Scanner;
public class ATM1 {
Scanner sc = new Scanner(System.in);
private String name = "lorin";
private double password = 123;
private double money = 500;
public void aloha(){
System.out.println("***********************");
System.out.println("* *");
System.out.println("* 欢迎使用ATM *");
System.out.println("* *");
System.out.println("* 制作人:lorin *");
System.out.println("* *");
System.out.println("* *");
System.out.println("************************");
System.out.println("请输入用户名:");
String s = sc.next();
if(s.equals("lorin")) {
System.out.println("请输入密码:");
int ss = sc.nextInt();
if(ss == 123) {
land();
}else{
System.out.println("密码错误,系统退出");
System.exit(0);
public class ATM1 {
Scanner sc = new Scanner(System.in);
private String name = "lorin";
private double password = 123;
private double money = 500;
public void aloha(){
System.out.println("***********************");
System.out.println("* *");
System.out.println("* 欢迎使用ATM *");
System.out.println("* *");
System.out.println("* 制作人:lorin *");
System.out.println("* *");
System.out.println("* *");
System.out.println("************************");
System.out.println("请输入用户名:");
String s = sc.next();
if(s.equals("lorin")) {
System.out.println("请输入密码:");
int ss = sc.nextInt();
if(ss == 123) {
land();
}else{
System.out.println("密码错误,系统退出");
System.exit(0);
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/default.jpg!1)
hotion163
- 粉丝: 2
- 资源: 2
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)