登录
首页 » Visual C++ » account

account

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

  • BendDynaCtrl release
    说明:  可以读取ybc数据,ybc预览,管子动态成型仿真,多用于弯管机场合。(YBC data can be read, YBC preview, dynamic tube forming simulation, mostly used for bending Airport closure.)
    2021-01-20 14:48:41下载
    积分:1
  • 23opencv
    车道线检测效果较好,检测准确,其中包括曲线拟合追踪。(Lane detection is effective and accurate, including curve fitting and tracking.)
    2020-07-04 11:40:02下载
    积分:1
  • ex_ori
    解算双像片空间后方交会中像片的6个外方位元素,精度达到0.001(Solution double photo photo space resection in 6 of exterior orientation elements, the precision of 0.001)
    2011-01-10 21:49:03下载
    积分:1
  • 1
    说明:  用c++类的方式在DOS界面下输入字符的程序(With c++ Class interface in DOS, enter the characters in the process)
    2008-11-27 16:58:36下载
    积分:1
  • NC-Programming-Courseware-entry
    数控编程基础入门课件(本人非编程人员,但真心恳求得到一个下载个数)(NC Programming Courseware entry)
    2014-05-21 08:49:04下载
    积分:1
  • LOL热键连招助手v1.1
    说明:  应景的变成表秀天天破解,应景的变应景的变(Seemingly intelligible and unproductive)
    2020-06-22 02:20:01下载
    积分:1
  • Ms-Flex-Grid-
    A book that explains tool Ms Flex Grid in visual Basic 6
    2013-09-27 20:29:27下载
    积分:1
  • VC-clock-source
    多功能时刻钟,整点报时,还有闹钟的功能,还有些功能没有完善。(Multi-time clock, the whole point of time, as well as alarm clock function, and some feature is not perfect.)
    2011-10-06 11:55:04下载
    积分:1
  • anwend-safe
    將 W頁的查詢出來的界面,通 ]件 l送出去,可以做為計劃排程來定 r的 l送(Will W page of the query out of the interface,] piece l sent out, can be used as a plan to schedule the r of the l send)
    2018-12-04 23:31:28下载
    积分:1
  • Phi-alpha
    This is a udf file of phi_alpha turbulence model of university of manchester for running if Ansys FLUENT. This model is based on v2f turbulence model.
    2014-09-04 11:02:36下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载