编程实现简易ATM,用户输入用户名和密码,验证其正确性,如果正确提示“登录成功”并显示其账户余额,如果不正确,则提示“登录失败”。 附加功能: 允许用户三次输入机会,输入正确,处理方法如上,输入不正确,提示“用户名和密码不正确,请重新输入”,如果三次输入都失败则,提示“登录失败,账户锁定”结束程序。 提示: char username[10][10]={"tonny","andy","alice","nancy","mike", "kate","brandy","lucy","candy","molly"}; Char password[10][10]={"000000","111111","222222","333333", "444444","555555","666666","777777","888888","999999"}; int rmb[10]={345,567,1789,2098,4567,17890,2345,12,0,10023}; username 数组中存放了10个账户名,password数组中存放对应的10个人的密码,rmb数组中存放这10个账户的人民币余额 。