-
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
-
测算超效率SBM模型的matlab代码SBM_DEA 1
说明: 测算超效率SBM模型的matlab代码,可以加入非期望产出(Matlab code for calculating super efficiency SBM model)
- 2021-04-16 10:48:53下载
- 积分:1
-
datamining
说明: 一份关于数据挖掘的入门资料,进行了数据挖掘的基本介绍
还介绍了聚类,关联规则,决策树,神经网络(data mining, cluster, classification, Decision tree, Neural network)
- 2010-03-17 01:45:49下载
- 积分:1
-
damper
弹簧阻尼单元,可用于有限元编程分析。仅供参考!(Spring-damper units, can be used for finite element analysis program. For reference only!)
- 2011-12-27 20:48:27下载
- 积分:1
-
AIAssignment4
sudoku using AI techniques
- 2009-05-20 20:36:26下载
- 积分:1
-
犯错
excel做的传统工程量计算表(加入vba后能自动计算、汇总、标注说明)
1、序号根据填入的分部分项名称自动填出1~N的数值。
2、代码栏根据填入的数据自动给出同一分部分项名称序号,为汇总提供方便。
3、项目名称/计算部位栏中书写分部分项名称、计算部位。
4、计算式栏中填入加、减、乘、除、乘方等运算公式,并在计算式中可加入注明(注明要用中括号或大括号,本例中有)。
5、单位栏为分部分项的计量单位,采用下拉菜单选取,点击单位所在的单元格即出现下拉菜单(必须填写,否则不能汇总)。
6、总量为C列同类代码的工程量汇总,系统会自动计算出同类代码的工程量总量,填入同一序号的总量上单元格。
7、工程量汇总表中,只填写1~N的序号,系统会自动将工程量中的分部分项名称、单位、总量填入。
8、因1、2行已被锁住工程名称在工程名称工作表中填入。
9、序号、代码、计算表达式、总量要敲回车键方能计算
-err
- 2022-01-26 06:15:01下载
- 积分:1
-
flashMem
p2020 bsp包中flash内存测试代码(P2020,flash memory test code)
- 2019-07-04 17:05:50下载
- 积分:1
-
计算机组成原理试题一,提供给在校学生,或者考研需要者,希望能提供一些帮助...
计算机组成原理试题一,提供给在校学生,或者考研需要者,希望能提供一些帮助-Principles of Computer Organization questions 1, available to students at school, or study section for those who need it, hoping to provide some help
- 2022-04-25 13:40:18下载
- 积分:1
-
guiLibs
说明: 基于matlab的SEKS-GUI实现时空分析,可以是非线性的和非高斯的(Realizing Spatio-temporal Analysis)
- 2020-06-17 06:40:01下载
- 积分:1
-
GA
说明: 使用遗传算法解决空战火力分配问题,是一种最基本的算法(Solving Air Combat Firepower Allocation Problem by Using Genetic Algorithms)
- 2019-04-14 14:45:21下载
- 积分:1