登录
首页 » Visual C++ » account

account

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

  • muta_pregramming__computing
    Network File Transfer Tool Example()
    2017-12-16 14:31:09下载
    积分:1
  • criticalpath
    这是一个求取关键路径的c语言程序设计源代码(This is a strike the critical path of c language programming source code)
    2012-06-14 09:35:54下载
    积分:1
  • Chanve
    Change the background color of the tree control VC source code
    2017-05-31 23:10:52下载
    积分:1
  • management-system
    基于mfc的旅游管理系统,其中涵盖了对数据库的基本操作(Mfc-based travel management system, which covers the basic operation of the database)
    2012-11-07 11:46:52下载
    积分:1
  • addresslist
    是一个简单的通讯录,可以添加,删除,查找和修改里面的内容(Is a simple address book, you can add, delete, find and modify the contents inside)
    2008-06-11 17:26:41下载
    积分:1
  • VB创建ACCESS数据库
    VB 创建 ACCESS 数据库,个人练习,一起学习,谢谢(VB Creates ACCESS Database)
    2020-06-23 15:40:02下载
    积分:1
  • GUI
    一个GUI测试程序,VC++源码下载,有一些窗体的显示特效,比如图片的显示特效,还有一些与GUI相关的实例演示,如上图所示为一些窗体控件的效果,还有更多请下载本源码参考。(The effect of a GUI test program, VC++ source code download, some form effects, such as the picture shows effects, there are GUI-related example demonstrates, as shown above for some form controls, and more, please Download the source code reference.)
    2012-06-26 10:01:01下载
    积分:1
  • ProtectFiledelteBy360
    保护文件不会被360安全卫士文件粉碎机删除(Protected files are not deleted 360 File Shredder)
    2011-07-29 11:36:17下载
    积分:1
  • treap
    说明:  treap的c++实现。有良好的可读性。并且多次验证了可行性(treap of c++ achieve. Good readability. And repeatedly verified the feasibility of)
    2008-11-17 11:09:56下载
    积分:1
  • dynarray
    动态数组应用实例。将动态数组运用于房间的计算,包括房间个数,总面积,平均面积,最大以及最小房间面积等(Dynamic array application example. Dynamic arrays used in the calculation of the room, including the room number, the total area, average size, maximum and minimum room size, etc.)
    2009-11-25 03:49:38下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载