zoukankan      html  css  js  c++  java
  • ATM实验感受

    public class Account {
        private String accountID;
        private String accountname;
        private String operatedete;
        private int operatetybe;
        private String accountpassword;
        private int accountbalance;
        private int amount;
        public String getaccountID(){
        return accountID;    
        }
        public String getaccountname(){
            return accountname;    
            }
        public String getoperatedete(){
            return operatedete;    
            }
        public int getoperatetybe(){
            return operatetybe;    
            }
        public String getaccountpassword(){
            return accountpassword;    
            }
        public int getaccountbalance(){
            return accountbalance;    
            }
        public int getamount(){
            return amount;    
            }
        public void setaccountID(String a) {
            this.accountID=a;
        }
        public void setaccountname(String b){
            this.accountname=b;    
            }
        public void setoperatedete(String c){
            this.operatedete=c;    
            }
        public void setoperatetybe(int d){
            this.operatetybe=d;    
            }
        public void setaccountpassword(String e){
            this.accountpassword=e;    
            }
        public void setaccountbalance(int f){
            this.accountbalance=f;    
            }
        public void setamount(int g){
            this.amount=g;    
            }
            public static void main(String[] args) {
            Account kehu=null;
            
        }
    
    }
    
    import java.util.Scanner;
    public class Accountmanager {
        private String inaccountID;
        private String inaccountname;
        private String inoperatedete;
        private int inoperatetybe;
        private String inaccountpassword;
        private int inaccountbalance;
        private int inamount;
        public void inID() {
            Scanner readData=new Scanner(System.in); 
            System.out.println("******************************************");
            System.out.println("      欢迎使用工商银行自动柜员系统");
            System.out.println("******************************************");
            System.out.println("请输入您的账号:");
            inaccountID=readData.nextLine();
            
            System.out.println("******************************************");
        }
        public void inpassword() {
            Scanner readData=new Scanner(System.in); 
            System.out.println("*******************************************");
            System.out.println("      欢迎  使用工商银行自助柜员系统");
            System.out.println("*******************************************");
            System.out.println("         请输入您的账号:");
            inaccountpassword=readData.nextLine();
            
            System.out.println("*******************************************");
        }
        public void insystem() {
            System.out.println("*******************************************");
            System.out.println("      欢迎  使用工商银行自助柜员系统");
            System.out.println("*******************************************");
            System.out.println("       1.存款;");
            System.out.println("       2.取款;");
            System.out.println("       3.转账汇款;");
            System.out.println("       4.修改密码;");
            System.out.println("       5.查询余额;");
            System.out.println("*******************************************");
        }
        public void incunkuan() {
     
            System.out.println("*******************************************");
            System.out.println("      欢迎  使用工商银行自助柜员系统");
            System.out.println("*******************************************");
            System.out.println("         请输入您的存款金额:");
            
            
            System.out.println("*******************************************");
        }
        public void incunkuan1() {
     
            System.out.println("*******************************************");
            System.out.println("      欢迎  使用工商银行自助柜员系统");
            System.out.println("*******************************************");
            System.out.println("         当前操作成功。");
            System.out.println("         当前余额为:元");
            
            System.out.println("*******************************************");
        }
       
        public static void main(String[] args) {
            Accountmanager people = null;
            people.inID();
        }
    
    }

         9月20日下午我们在基教参加了一场Java考核,实验内容是ATM自动取款机程序的制作,对于初学者的我来说这次考核内容有的难度,考核过程中我碰到了许多问题。

        首先基础知识还没有掌握,输入数据一开始都出现了问题,Input中的I没有大写,浪费了我些许不该浪费的时间,也让我发现自己对基础知识掌握太差,后来做到数据库的链接时又是一脸懵逼,在网上也学习了很久,可是也并没有看懂,最终只能放弃两分,本想着做后面的功能拿分,可是我还是太年轻,后面的功能都和数据库有关系,都需要和数据库进行链接,我只好先做界面,希望好心的学长可以给点分数,界面的制作过程还是相对顺利,因为只有简单的类的定义和数据的输入输出相关内容,但是界面不少,当我做完界面时时间只剩下30分钟,30分钟我又回过头去看了看数据库的链接,然而最后还是以失败告终。

        这次考核让我对自己的实力有了了解,以后还应该在课下多看看,做程序时也不能粗心大意,大小写的问题应该注意,不能小问题就不把他当问题,往往不起眼的小问题会导致失败,课下也应该多敲敲代码,在考核中,我甚至都不能让自己的Java程序跑起来,只能让学长读,这样的水平对与老师的要求还是相差太远,将来要面对客户的要求时,可就不能像这次实验一样,不会就不做了,因此危机感必须从现在就要有。

       其次自己的应变能力稍显不足,当发现自己不会数据库时瞬间就慌了,不知道该如何填补这个空缺,导致一处不会,后面的程序就都没法做,而别的同学有的用文件输入输出代替,有的直接输入输出代替,最后程序还可以跑,虽然少了一部分功能,但大体看起来就好很多,理所当然也拿到了更高的分数。

      最后我发现自己对于一个程序的思路也不明确,编程中都是做一步看一步,没有在编程前先理清思路的习惯,也没有这个实力,这样就使得效率不高,程序混乱,让自己再返回去看的时候有些费劲,以后还应该多锻炼这方面的技能,养成这样一个良好的习惯,既然自己本身实力就不好,如果再不养成点好习惯,找点好方法,那么编程肯定难以有所造诣。

      这次考核也让我发现C++与Java有相似也有不同,C++的许多思路也可以在Java中用到,如类的定义就基本相似,就是每一项都应该说明性质,但Java输入输出相对C++复杂许多,Java每个类中都有主函数,所以每个类都可以单独运行,方便错误的查找。

      这次考核我对自己的成绩并不满意,但也无法改变,所以只能争取在下一次的考核中拿到好的成绩,也一定会取得更好的成绩。

      以上就是我本次实验的感受。

  • 相关阅读:
    微信小程序路由跳转 wx.navigateTo() 失败
    微信小程序文件下载 wx.downloadFile()、 wx.saveFile() 和 wx.openDocument()
    Vue——项目中接口返回值为函数回调,回调函数定义方法(Vue的方法给原生调用)
    h5页面判断移动端系统为Android或IOS
    解决小程序报错 Page "pages/index/main" has not been registered yet.
    mpvue路由传参报错Cannot read property 'query' of undefined
    解决前端项目启动时报错:Use // eslint-disable-next-line to ignore the next line.
    解决npm报错:Module build failed: TypeError: this.getResolve is not a function
    APIO2016赛艇
    容斥小结
  • 原文地址:https://www.cnblogs.com/my---world/p/9693109.html
Copyright © 2011-2022 走看看