登录
首页 » Visual C++ » account

account

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

  • RevSubStr
    长度为N(N很大)的字符串,求最长回文串(Length N (N large) strings, find the longest palindrome string)
    2013-09-29 11:52:47下载
    积分:1
  • zuijindui
    用蛮力法和分治法解最近对问题以及对算法时间性能及运行结果的分析 (And sub-rule by brute force method of solving the problem, as well as the recent performance of the algorithm and running time analysis of the results)
    2009-12-07 19:30:01下载
    积分:1
  • DSP开发C语言编程的CSL函数应用手册
    说明:  c6000 csl函数应用手册,欢迎参考(c6000 csl user guide)
    2018-03-20 10:26:55下载
    积分:1
  • 209
    代码虽简短,游戏很有趣。文档易于下载运行程序。(Although brief, the code, the game is very interesting. Document easy to download and run the program.)
    2012-10-29 17:41:22下载
    积分:1
  • LotterySelection
    MFC实现一个好玩的 号码快速变化 再停止的抽奖程序(MFC implements a fun number to stop the fast-changing lottery process again)
    2011-11-29 12:39:59下载
    积分:1
  • game
    用VB编写DirectX7.0游戏   DirectX7.0终于出现了,同前面DirectX6相同,版本7也带了一个庞大(129M)的SDK开发库,同DirectX6 SDK库相比,DirectX7的SDK库提供了以下新的功能:   * 对于Visual Basic的支持。用户可以使用类库在Visual Basic环境下开发基于DirectX的程序。   * 提供更多DirectX3D立即模式(Immediate Mode)下的API函数,以支持DirectX7中新的3D特效,包括立体环境映射、顶点混合等。   * DirectMusic支持DownLoadable Sound Level 2标准。   * DirectInput支持8按键的游戏杆设备,同时支持Microsoft的力反馈摇杆。SDK库提供了读取力反馈效果文件的方法。同时提供了Force Editor程序来建立效果。   对于VB爱好者来说,新的SDK库终于提供了完整的对VB的支持,现在终于可以使用Visual Basic来编写DirectX的程序了。 (err)
    2008-08-26 10:40:25下载
    积分:1
  • bianyi
    编译原理的词法分析,可以检测小段程序代码的各个词法属性归类!(yeah! it is really good!!)
    2009-12-06 14:38:48下载
    积分:1
  • lianjie
    说明:  两个字符串连接,利用指针函数(two strings, using indicator function )
    2006-04-15 12:59:45下载
    积分:1
  • aCalculator
    一个可以自由转换进制的计算器 八,十,十六,随意转换(a free conversion of 229 calculators 8, 10, 16, the casual change)
    2007-01-21 22:51:17下载
    积分:1
  • sph-fluid
    一个水掉落至方形容器的执行动画,可以查看SPH动态效果(An execution animation of water falling into a square container.)
    2018-09-11 11:22:39下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载