-
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
-
二次开发Mach3官方宏指令集
mach3软件的二次开发的助手,尤其是对cnc控制板的拓展(The assistant of secondary development of Mach3 software, especially the expansion of CNC control board)
- 2020-06-19 20:00:02下载
- 积分:1
-
thunk_x64
x64实现Thunk的新思路,兼容x86,目前能使用的第一份x64下的thunk代码。(x64 new ideas to achieve Thunk, compatible with x86, is currently able to use the first thunk code under x64.)
- 2009-04-17 03:44:53下载
- 积分:1
-
student_TOP
c++源程序课程设计,完整的学生成绩管理系统(c++ source program curriculum design, a complete management system for student achievement)
- 2009-12-28 16:18:20下载
- 积分:1
-
converte-into-corresponding-digital
对一段只含有几种字符的字符串进行转换,转换成相应的数字(a string contains only several character conversion, and converted into the corresponding digital
)
- 2013-09-07 17:46:26下载
- 积分:1
-
yue
采用ODBC技术,利用VC++对XLS文件的结构和记录内容进行了读取(The structure and record contents of XLS files are read by using ODBC technology and VC.)
- 2019-01-01 07:32:29下载
- 积分:1
-
JumpPointSearch-master
说明: 程序实现了带有预处理的挑点搜索算法,2014年提出算法。(The program realizes the point search algorithm with preprocessing, which was proposed in 2014.)
- 2020-12-06 15:49:28下载
- 积分:1
-
ArcObject
说明: 一本介绍ArcObject组件开发的书,介绍GIS二次开发(Copies of the book ArcObject component development, secondary development of GIS introduction)
- 2010-04-13 14:31:45下载
- 积分:1
-
table
好用的,系统辨识中,递推最小二乘估计RLS是辨识模型阶次的一个重要的算法,(Easy-to-use, system identification, the recursive least squares estimate RLS times of order identification model is an important part of the algorithm,)
- 2017-08-12 21:08:48下载
- 积分:1
-
库存管理系统-单机版
Visual Basic VB 库存管理系统-单机版(Inventory Management System)
- 2020-06-16 14:40:01下载
- 积分:1