-
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
-
BusStationManage
用Visual C++ 6.0实现的公交客运站的站务管理系统,实现售票,退票,车辆调度,财务结算,用户管理等功能。
数据库采用SQL Sever2000
数据库中的表单和代码文件说明相见压缩包中说明文档。(用Visual C++ 6.0实现的公交客运站的站务管理系统,实现售票,退票,车辆调度,财务结算,用户管理等功能。
数据库采用SQL Sever2000
数据库中的表格和代码文件说明相见压缩包中说明文档。)
- 2009-04-15 17:15:57下载
- 积分:1
-
polar3d
三维极坐标绘图函数,将三维直角坐标系下的绘图转变为三维极坐标绘图(Three-dimensional polar coordinate drawing function, the three-dimensional Cartesian coordinates of the system into a three-dimensional polar coordinates)
- 2020-06-30 15:20:01下载
- 积分:1
-
内存压缩解压缩JPG图像
纯内存操作解压JPGE 很早之前收录的 并非原创 共享给大家(Pure memory operation decompression JPGE. Long ago included, not original. Here to share with you.)
- 2020-06-22 07:20:01下载
- 积分:1
-
mgwt
此代码的功能是:用列表显示系统正在运行的程序,用visual basic 编写完成,()
- 2018-05-09 10:04:05下载
- 积分:1
-
Excel录入
用VB写的Excel录入程序 非常方便 可以方便用户对excel的输入修改 (VB write Excel entry procedures can be very convenient user-friendly input to excel changes)
- 2005-05-30 11:25:59下载
- 积分:1
-
z
说明: 智能视频监控系统目标检测和跟踪技术分析研究(Intelligent video surveillance system target detection and tracking of technical analysis)
- 2013-03-18 15:46:37下载
- 积分:1
-
source
《Visual C++游戏开发经典案例详解》书中的源代码,希望对大家有一些帮助!(" Visual C++ game development classic cases." book of the source code, we hope to have some help!
)
- 2011-12-27 10:34:45下载
- 积分:1
-
123485721345214542165
大整数的运算,我再网上找刀的一些,大家一起分享(large integer arithmetic, I find the Internet a number of knives, to share with everyone)
- 2006-08-08 09:14:24下载
- 积分:1
-
zxxx
gps and phone
- 2021-01-19 22:18:41下载
- 积分:1