-
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
-
实例源代码
配套金沙滩51单片机开发板的学习实例程序,共有17个课时(Supporting Jinshatan 51 MCU development board learning program, a total of 17 hours.)
- 2020-11-28 11:49:29下载
- 积分:1
-
研究电动汽车无序充电对电网的影响
说明: 根据电动汽车无序充电进行蒙特卡洛仿真得到日负荷曲线(Monte Carlo simulation based on disorderly charging of electric vehicle to get daily load curve)
- 2021-03-01 20:09:34下载
- 积分:1
-
edge Yee Queuing System server source code
力麒排队系统服务端原代码-edge Yee Queuing System server source code
- 2022-03-23 07:20:07下载
- 积分:1
-
jQuery侧边浮动多级导航菜单代码
说明: jQuery侧边浮动多级导航菜单代码是一款适用于手机端侧边导航滑动遮罩层显示代码。(JQuery Side Floating Multilevel Navigation Menu Code is a display code for mobile phone side navigation sliding mask layer.)
- 2019-01-12 18:41:06下载
- 积分:1
-
MATLAB
小波包分析,分解和重构,能量比值,波谱图像(Wavelet packet analysis, decomposition and reconstruction, energy ratio, spectral images)
- 2018-06-28 13:00:20下载
- 积分:1
-
ptdma
可把一块图片分割几部份,切片数量可由用户定制,游戏开始后顺序打乱,然后让你拼图。(A picture can be split into several parts, cut the number of user customization, upset the order after the start of the game, and then let you puzzle.)
- 2011-04-20 22:12:07下载
- 积分:1
-
VB 摄像头视频远程传输实例
主要功能是可以控制和监视客户端,如捕捉客户端屏幕、发送消息到客户端、锁定客户端、解锁客户端、控制注销客户端(The main functions are to control and monitor the client, such as capturing the client screen, sending messages to the client, locking the client, unlocking the client, and controlling the logout client.)
- 2020-06-15 22:55:01下载
- 积分:1
-
d2bot-2019_06_17_AutoSmurf
d2bot适用于官网,私服好像不能用提示试图访问无效的地址。(D2bot is suitable for bn. sf do not seem to be able to use prompts to attempt to access invalid addresses)
- 2020-06-19 22:40:02下载
- 积分:1
-
BTPrint
说明: 调用Bartender 的DLL 打印文件 ,需要先安装好BARTENDER(Use Bartender DLL for Print)
- 2020-06-23 02:00:02下载
- 积分:1