登录
首页 » Visual C++ » account

account

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

  • Windows-programmer-desion
    说明:  是一部window开发比较全面的书籍,书中涉及了window开发的所有内容,适合有一定编程基础的开发人员不断地学习。(Window is a more comprehensive development of books, book covers all the contents of window development for a certain programming based development staff have been learning.)
    2011-03-04 11:40:20下载
    积分:1
  • snake
    用C++实现的贪吃蛇游戏程序,对游戏的设计思路有比较详细的讲解。(no )
    2009-09-04 21:13:30下载
    积分:1
  • 办公事务管理系统
    说明:  办公事务管理系统的Visual Basic .NET源代码。 可以参照。(Office transaction management system source code. You can refer to it.)
    2019-07-08 10:07:12下载
    积分:1
  • down
    说明:  一个复杂的工程通常可以分解成一组小任务的集合,不错(A complex project can usually be broken down into a collection of small tasks.)
    2018-12-30 10:57:37下载
    积分:1
  • 34401a
    VB 透过GPIB 和仪器通信,代码比较简单,仅供参考。谢谢(VB communicates with the instrument through GPIB. The code is relatively simple and is for reference only. Thank you)
    2020-06-22 18:00:01下载
    积分:1
  • 现代电力系统分析.rar
    王锡凡先生写的现代电力系统分析,研究生教材(Modern Power System Analysis, Graduate Textbook by Mr. Wang Xifan)
    2021-02-17 23:59:45下载
    积分:1
  • Huaweiregulateprogramming
    说明:  设计编码中出现的计算正确性和一致性、程序逻辑控制等方面出现的问题在系统中起关键作用将导致软件死机功能正常实现(Design coding appearing in the correctness and consistency of the calculation, the program logic control problems in the system play a key role will lead to software crashes realize function)
    2008-09-27 10:00:40下载
    积分:1
  • zuma
    祖玛小游戏 实现基本功能 基本算法 给大家参考一下 地图两种圆形 和 直线(Zuma game to achieve the basic functions basic algorithm to refer to two kinds of circular and linear maps)
    2013-09-02 22:50:26下载
    积分:1
  • mgwt
    此代码的功能是:用列表显示系统正在运行的程序,用visual basic 编写完成,()
    2018-05-09 10:04:05下载
    积分:1
  • LAStools
    说明:  lastools工具,利用lastools工具可以將las文件轉換類型,並且可以在potree中使用(the tool of lastools)
    2020-06-23 11:00:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载