-
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
-
simple clock on PIC16f886
writing at mikroC 8.2
proteus 7
simple clock on PIC16f886
writing at mikroC 8.2
proteus 7
- 2022-01-27 11:36:34下载
- 积分:1
-
This program is written in C node 100 Power Flow Calculation Program
本程序是用C语言编写的100个节点的电力系统潮流计算程序-This program is written in C node 100 Power Flow Calculation Program
- 2022-02-25 11:54:00下载
- 积分:1
-
Method of Moments Lecture Notes
Method of Moments Lecture Notes
- 2022-06-18 08:23:56下载
- 积分:1
-
双馈风力发电并网模型 power_wind_dfig
双馈风力发电并网模型,这是系统自带的风力发电模型。可用于学习风力发电的并网过程及故障分析
(Grid connected model of doubly fed wind power generation)
- 2020-06-18 13:45:45下载
- 积分:1
-
java_fangkuai
俄罗斯方块经典款,用java语言编写。。(Tetris classic, java prepared.)
- 2013-09-03 21:52:49下载
- 积分:1
-
AR模型
说明: AR滤波器滤除信号中的低频分量信号,实现降噪的目的(The AR filter filters out low-frequency component signals in the signal to achieve noise reduction.)
- 2019-05-20 14:45:08下载
- 积分:1
-
LSSVM-(2)
最小二乘法支持向量机预测,自己编的的,可以运行,希望能改进。(least sqare support vector machine for prediction)
- 2011-05-25 19:36:59下载
- 积分:1
-
E语言源代码,有喜欢的都来看下,如果好用就保留不好用就
E语言源代码,有喜欢的都来看下,如果好用就保留不好用就-E-language source code, there are look like, if not with ease of use on the reservation on the
- 2023-05-22 11:05:04下载
- 积分:1
-
Lib source code of Machine study supporting Vector machine
机器学习支持向量机的代码libsvm 2.36版-Lib source code of Machine study supporting Vector machine
- 2023-03-12 21:40:04下载
- 积分:1