-
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
-
RunningMatchmen
火柴人的跳跃和滚动 按s滚动躲避障碍 按w跳跃躲避障碍(Stickman jumping and rolling)
- 2013-12-12 20:24:23下载
- 积分:1
-
skyblue_PinTu
拼图 源代码 大家可以参考学习一下……(Puzzles everyone can refer to the source code to learn about ... ...)
- 2009-02-07 21:58:17下载
- 积分:1
-
北邮国院3D大作业
北邮国院电管多媒体方向大三下3d大作业,用VS2015写的,生成的exe是用的Dev,做的是一只3d的小蜜蜂,最后评分80+,不算很高但是够用了。(BUPT 3D graphics coursework)
- 2020-11-29 15:19:29下载
- 积分:1
-
pywracer.2004.12.24.tar
赛车游戏 基于vc++的游戏设计 实现赛车游戏(car games)
- 2011-12-21 15:39:53下载
- 积分:1
-
Cal_Rain
雷达天气回波,基于小雨法的差分反射率标定的源程序(Rain-based method of differential reflectivity calibration source
)
- 2012-01-10 20:44:49下载
- 积分:1
-
SAE-J1939
J1939 中英文协议 英文的很全 中文的也很详细 分享给大家(J1939 protocol in English)
- 2014-03-14 09:31:26下载
- 积分:1
-
CsystemSimAndWA_11417507
通信系统仿真原理与无线应用,matlab仿真参考书(Communication System Simulation Theory and wireless applications, matlab simulation of reference books)
- 2009-12-17 13:59:51下载
- 积分:1
-
9682767
C语言如何使用函数中的局部变量,仅供学习与参考(How to use C language function of the local variable, is only for study and reference)
- 2017-08-19 14:31:44下载
- 积分:1
-
car4Ssale
用c++做的汽车4s店销售系统(mfc)
录入查询库存预定等功能模块
头文件中定义 class CAutomobile4SshopDlg : public CDialog
头文件中定义class sale : public CDialog
class service : public CDialog
class storage : public CDialog
class guanli : public CDialog
分别作销售,服务,库存,管理功能模块函数体调用
#define IDM_ABOUTBOX 0x0010
#define IDD_ABOUTBOX 100
#define IDS_ABOUTBOX 101
#define IDD_AUTOMOBILE4SSHOP_DIALOG 102
.....宏定义为函数体调用(Using c++ to do car 4s shop sales system (mfc)
Input query inventory reserve and other functional modules
Header file defines class CAutomobile4SshopDlg: public CDialog
Header file defines class sale: public CDialog
class service: public CDialog
class storage: public CDialog
class guanli: public CDialog
Respectively, for sales, service, inventory management function module calls the function body
# define IDM_ABOUTBOX 0x0010
# define IDD_ABOUTBOX 100
# define IDS_ABOUTBOX 101
# define IDD_AUTOMOBILE4SSHOP_DIALOG 102
Defined as a function of the body ..... macro call)
- 2013-10-24 17:52:29下载
- 积分:1