-
account
设计一个名为Account类。这个类包含:
(1)一个名为id的int型数据域,表示账户的身份号(默认值为0)。
(2)一个名为balance的double型数据域,表示账户余额(默认值为0)。
(3)一个名为annualInterestRate的double型数据域,保存当前年利率(默认值为0)。
(4)一个无实参构造函数,创建一个默认账户。
(5)id、balance和annualInterestRate的访问器和更改器函数。
(6)一个名为getMonthlyInterestRate()的函数,返回月利率。
(7)一个名为withDraw的函数,从账户中支取指定金额。
(8)一个名为deposit的函数,向账户中存入指定金额。
画出类的UML图,实现类。编写一个测试程序,它创建一个Account对象,其ID为1122,账户余额为20000,年利率为4.5 。使用withDraw函数取出2500美元,使用deposit函数存入3000美元,然后输出账户余额、月利率和账户创建时间。(Design a class named Account. This class includes: (a) a named data type int id field that indicates the account identification number (default is 0). (2) a double-called balance of data fields, which means that the account balance (default is 0). (3) a double type named annualInterestRate of data fields, save the current interest rate (default is 0). (4) a no-argument constructor creates a default account. (5) id, balance and annualInterestRate access control and change control functions. (6) a named getMonthlyInterestRate () function returns a monthly rate. (7) a function named withDraw, drawn from the account specified amount. (8) a function called deposit to the account into a designated amount. Draw a UML class diagram, the implementation class. Write a test program that creates an Account object, its ID is 1122, the account balance is 20,000, an interest rate of 4.5 . Use withDraw function out $ 2,500, $ 3,000 deposit with deposit function, and then outputs the account balance, m)
- 2013-06-01 13:21:54下载
- 积分:1
-
AddressBook
对地址薄的初学测试,自己写的,希望对大家有所启发吧(Address book for novice test, write your own, we hope to inspire it)
- 2013-08-10 11:19:49下载
- 积分:1
-
RS232 Upgrade Loader Tool M3510
UPGRADE tool rs232. Download
- 2019-04-10 00:20:11下载
- 积分:1
-
fdshgfh
基于单片机控制的光立方显示程序,573和2803控制阳极和阴极(Control light cube display program based on 51 single chip microcomputer)
- 2017-12-22 18:57:30下载
- 积分:1
-
odometer
arquivo de odomentro
- 2018-01-12 06:07:50下载
- 积分:1
-
ASimpleCalculator
一个简单的计算器程序,实现了加、减、乘、除计算(A simple calculator program to achieve the add, subtract, multiply, divide computing)
- 2013-12-17 22:04:32下载
- 积分:1
-
vb_updata
VB 自动升级,让你的程序自动更新。感谢所有支持我的人,谢谢你们,你们辛苦了。(vb updata)
- 2009-10-31 13:10:56下载
- 积分:1
-
dpa
用差分功耗分析的方法破解DES算法的源码通过300组密文分析,可以破解出密钥(Differential power analysis method with the DES algorithm source code crack)
- 2011-05-31 23:36:11下载
- 积分:1
-
GetSerialNumDemo
使用VC++ 6.0 获取主板的序列号。(Get motherboard s serial number using VC++ 6.0)
- 2012-03-15 23:01:52下载
- 积分:1
-
dog
小狗说话代码,小狗只能说特定的话语,当某些条件满足时,小狗可以叫喊或者说出自己的名字,最后输出的是小狗说的话(Speak code puppy, puppy can only say that the particular words, when certain conditions are met, the puppy can yell or say his name, the final output is a puppy say)
- 2013-03-20 20:15:54下载
- 积分:1