登录
首页 » Visual C++ » account

account

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

  • udf-k-e-turbulence-model
    湍流模型的udf编译文件 写的是fluent中默认的k-e模型的文件,可以以此为基础进行来更改(This is a udf flie about turbulence model which is in the fluent software, and you can edit it in your own method.)
    2021-03-02 16:59:33下载
    积分:1
  • project-3-master
    说明:  input source code of your wish hghggjr
    2019-02-07 14:05:10下载
    积分:1
  • 276_asi_loader_scripthooks
    说明:  GTA ASI Loader by GiTaRiST
    2019-06-09 21:14:22下载
    积分:1
  • Snake-source-code
    本程序是一个贪吃蛇的程序,可以实现贪吃蛇游戏的基本功能(This program is a Snake' s program, you can achieve the basic functions of the Snake game)
    2013-03-04 16:31:24下载
    积分:1
  • Bmpcolor
    VB将彩色图象黑白化典型示例代码,有需要的就下。(VB of the typical black and white color image sample code, there is a need on the next.)
    2013-08-09 09:22:23下载
    积分:1
  • VB音乐播放器
    VB音乐播放器,实现音乐播放功能,可以直接使用,可以在此基础上添加自己的程序(VB Music Player, to achieve music playback function, can be used directly, you can add their own programs on this basis.)
    2020-06-19 07:40:02下载
    积分:1
  • basic_optical
    基本的光学知识,想学习光学的同学们可以看看的,呵呵(Basic optical knowledge of the students want to learn optics can see, the Hehe)
    2010-02-05 11:30:39下载
    积分:1
  • PC与汇川PLC_ModbusTCP_Test
    说明:  上位机读写汇川H3U PLC的寄存器与继电器(Register and Relay of H3U PLC for Upper Computer Reading and Writing)
    2021-04-23 20:58:47下载
    积分:1
  • skyblue_BoxMan
    推箱子小游戏,visualC++经典游戏设计(Sokoban game, visualC++ Classic Game Design)
    2008-12-18 14:39:16下载
    积分:1
  • OQPSK解调类
    OQPSK调制在移动通信等领域应用普遍,该例程采用两类典型解调算法来具体实现,二者差别主要体现在环路滤波器设计和码元同步算法选择上,效果均可,可直接套用。建议对调制解调有兴趣的初学者细致学习之。(OQPSK modulation is widely used in mobile communications and other fields, the routine use two kinds of typical demodulation algorithm, the difference between the two is mainly reflected in loop filter design and symbol synchronization algorithm, it can be directly applied. Recommendations for modulation and demodulation of beginners interested in learning carefully.)
    2021-04-17 00:08:53下载
    积分:1
  • 696518资源总数
  • 105964会员总数
  • 17今日下载