作业帮 > 综合 > 作业

一道英文的Java编程题目

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/21 18:54:10
一道英文的Java编程题目
Create a program that uses variables and methods to read some information
about a bank customer and handle his/her account.The information that
should be read is namn,address,phone number and account number.The
information shall be stored in variables using appropriate data types and
names.Methods shall be created for depositing and withdrawing money,the
methods shall print an appropriate text telling the customer what to do
(deposit or withdraw) and then read the amount and return it so that the
account balance can be updated.
Deposit three different amounts and then withdraw two.All the information
including customer information and account information shall be printed.
给你翻译一下:
创建一个程序,用变量和方法来读取银行客户的信息以及对账户的操作.姓名、地址、电话号码和账户号码的信息必须读取.这些信息必须用合适的数据类型和名称来存储.创建的方法用于操作存款和取款,并且方法要打印出适当的提示信息告知用户怎样操作(存还是取),最好还要更新并显示账户余额!
存三次然后取两次.并须打印出客户信息和账户信息.
看完中文版的题目相信你一定不会觉得难了.
再问: 亲,就是因为老师上课讲的method不明白,所以不会做,题目的意思我晓得