登录
首页 » Visual C++ » account

account

于 2013-06-01 发布 文件大小:1KB
0 289
下载积分: 1 下载次数: 17

代码说明:

  设计一个名为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)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • llk
    使用VC实现的 连连看 所有源代码以及资源文件(Implemented using VC Lianliankan all source code and resource files)
    2010-07-09 19:44:27下载
    积分:1
  • 魔兽世界模型观察器 wowmodelview-0.48e
    魔兽世界模型观察器 魔兽世界模型察看器4.8e(含源码) [9M](World of Warcraft World of Warcraft model viewer Model View browser 4.8e (with source) [9M])
    2020-06-26 03:00:02下载
    积分:1
  • invGJ
    输入一个矩阵,可以求得该矩阵的逆矩阵,内附解释说明(Enter a matrix, you can obtain the inverse matrix, containing an explanation)
    2010-08-20 12:17:51下载
    积分:1
  • tetris
    用 cocos2d-x 3.4 开发的俄罗斯方块(Use cocos2d-x 3.4 development game tetris)
    2015-02-26 14:45:26下载
    积分:1
  • cdp
    单炮地震记录正演模拟,有详细说明,可供地球物理初学者学习(Single-shot seismogram modeling, there are detailed instructions, for beginners to learn geophysics)
    2020-09-12 19:17:58下载
    积分:1
  • Tool-X-master
    说明:  Awsome Generation of data and key and other stuff
    2019-05-21 22:19:57下载
    积分:1
  • dadishu
    打地鼠输入输出设备买一些机器人来帮他,这些机器人很厉害,一个就可以顶上十个,原因很简单,他可以打中所有出现在和它同行或同列的地鼠(Input and output devices to play hamster robot to help him buy some of these robots is very powerful, can be a top ten, for the simple reason that he can hit it all in and out to peers or with the mouse)
    2011-07-05 16:01:37下载
    积分:1
  • M7lrvCMS商业版最终版本
    M7lrvCMS商业版最终版本 破解版功能齐全 如cms识别 c段查询 后台扫描 shell管理 批量注入等功能(M7lrvCMS commercial version of the final version of the cracked version is fully functional, such as CMS recognition C segment query background scanning, shell management, batch injection and other functions.)
    2021-05-13 11:30:02下载
    积分:1
  • 并行openmp
    Openmp for parallel computing samples!!!
    2020-06-22 09:40:06下载
    积分:1
  • ASimpleCalculator
    一个简单的计算器程序,实现了加、减、乘、除计算(A simple calculator program to achieve the add, subtract, multiply, divide computing)
    2013-12-17 22:04:32下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载