-
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
-
celltext单文件版
超好用的vb表格小控件, 实现随心所欲的编辑,你值得拥有!(Super use of VB form small controls, you deserve to have!)
- 2018-04-22 14:35:59下载
- 积分:1
-
DITONGLBOQI
在 惯 性 导 航 系 统 里 往 往 需 要 对 陀 螺 仪 和 加
速 度计进 行 性 能测 试
,
这 时就 要设 计一 种 测 试 它
们 的 滤 波器
。
滤 波器 从 功 能 上 可 分 为 四种 低通
、
高通
、
带 通
、
带 阻 滤 波 器
。
文 中所 要 研 究 的低 通 滤 波器 是 通 过 低 频 信号 而
抑 止 高频 信号 的滤 波器
,
巴 特 沃 思 滤 波器 是 最 简
单 的低通 滤波 器
。
其 中
、
为 实 常 数
, ,
。
一
, ,
二
,
分
母 多项 式的幂 次 即 为滤波器 的 阶数
。
若 式
除
“ 。
外 所 有 分 子 项 系数 均 为零
,
则传递 函数
变 成 一 常数 与 多项 式 之 比
。
这 时传递 函数有 有 限
极 点 而 无 有 限零 点
,
这 种 滤 波 器称 为 全极 点 滤 波
器
,
阶 巴 特 沃斯 滤 波 器 也 是 全极 点 滤 波 器
。
全
极 点 滤 波器 传递 函 数 为
矛
,
,
厂 十
。 , ”一 ’
竺(n the inertial navigation system and processing is often necessary for gyroscope
Speed meter performance test conducted
,
This is when you want to design one kind of test it
Our filter
.
Filter from the functions can be divided into four low-pass
,
Qualcomm
,
Bandpass
,
Bandstop filter
.
The text to be studied in a low-pass filter is a low-frequency signal by
For the high-frequency signal suppression filter
,
Bart Waugh think is the most simple filters
The single low-pass filter
.
Which
,
Is a real constant
,,
.
A
,,
Two
,
Minute
Mother is a power of the polynomial order of the filter
.
If the formula
Except
. "
Have a child outside the sub-zero coefficients are
,
Then the transfer function
Turned into a constant ratio with polynomial
.
At this time there is limited transfer function
No pole while Zero Limited
,
This kind of filter is referred to as full-pole filter
Implement
,
Order Butterworth filter is all-pole filter
.
W)
- 2013-10-25 10:47:37下载
- 积分:1
-
DateChang
VB编程实现改变系统日期格式,有需要的就下载吧。(VB Programming to change the system date format, there is a need to download it.)
- 2013-07-25 20:44:37下载
- 积分:1
-
VCPPRpgGameStudy
使用VC++编写的,RPG游戏学习例子,简单演示了,地图上2个NPC(或主角人物)相互跑动的过程(Using VC++ written in RPG games learning example, a simple demo on the map two NPC (or protagonist) running each other)
- 2012-04-06 10:54:57下载
- 积分:1
-
CODE-UTS-FIR
This is a source code for FIR
- 2012-05-07 22:12:19下载
- 积分:1
-
TestCom
说明: Connect comport to PC and Test
- 2019-01-03 18:36:26下载
- 积分:1
-
Elevator
4×10的电梯群控系统的仿真平台,可以模拟群控电梯的实时运行情况,并提供了可视化的界面,可以记录乘客的进出时间,总之,在研究电梯群控算法方面,是非常有用的软件。(4 × 10 of the elevator group control system simulation platform that can simulate the elevator group control of real-time operation, and provides a visualization interface, can record the entry and exit of passengers time, short, in the study elevator group control algorithm is very useful software.)
- 2021-04-23 15:08:47下载
- 积分:1
-
GPIBUtility
GPIButility是ADLINK公司的GPIB驱动所带的工具软件,可以自动获得所有GPIB设备信息并可作相应的各项参数设置。(ADLINK' s GPIButility is brought GPIB driver software tool that can automatically access to all GPIB device information and can set the parameters accordingly.)
- 2009-09-11 08:52:32下载
- 积分:1
-
TETRIS
此文档为visual c++平台实现俄罗斯方块的部分参考代码。已经通过调试通过。(This document is visual c++ platform Tetris part reference code. Has passed through debugging.)
- 2013-10-23 21:46:26下载
- 积分:1