登录
首页 » Visual C++ » account

account

于 2013-06-01 发布 文件大小:1KB
0 271
下载积分: 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 个回复

  • K线包含处理
    缠论K线包含处理dll,顶分型和底分型的判断,无笔和线段的编写(Free good stock index source code, although this version is not strong DLL version, but it is also very accurate)
    2020-12-14 00:39:15下载
    积分:1
  • PickingMain
    osg quick start guide 源码(osg source code of quick start guide)
    2018-08-31 15:04:17下载
    积分:1
  • CodingNation Crypter Source
    说明:  file crypter in vb6 source
    2019-03-17 10:31:58下载
    积分:1
  • RS232 Upgrade Loader Tool M3510
    说明:  UPGRADE tool rs232. Download
    2019-04-10 00:20:11下载
    积分:1
  • VCdatabase
    说明:  详细介绍了用VC.NET开发城市基础地理数据库的实例,用于城市测绘,城市基础地理系统建设的重要参考。(Described in detail with the development of urban infrastructure VC.NET examples of geographic database for urban mapping, urban infrastructure an important geographic reference system.)
    2009-08-17 22:36:26下载
    积分:1
  • CUser
    说明:  使用odbc访问sql server2000数据库(Access to sql server2000 database using odbc)
    2010-04-06 10:49:44下载
    积分:1
  • Test
    MFC平台 打砖块游戏代码 面向对象程序设计思想编写 (MFC platform BrickBreaker design object-oriented programming code written)
    2021-01-10 13:28:51下载
    积分:1
  • glue
    GLUE通过蒙托卡罗样点用来分析水文模型参数不确定性分析(GLUE through Monte Carlo samples used to analyze the hydrological model parameter uncertainty analysis)
    2020-12-05 11:29:23下载
    积分:1
  • 华为校园招聘笔试面试题合集
    华为校园招聘合集,各个岗位的的笔试题,非常有用(good book is good book)
    2018-03-20 21:50:52下载
    积分:1
  • z
    说明:  智能视频监控系统目标检测和跟踪技术分析研究(Intelligent video surveillance system target detection and tracking of technical analysis)
    2013-03-18 15:46:37下载
    积分:1
  • 696516资源总数
  • 106554会员总数
  • 12今日下载