登录
首页 » Visual C++ » account

account

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

  • GifAnimator
    gif animation in visual basic
    2017-09-26 04:18:19下载
    积分:1
  • 911516
    2017-09-27 20:09:10下载
    积分:1
  • cpso
    自适应混沌粒子群算法,收敛快,精确度高,在参数辨识上具有很好的应用(Adaptive chaotic particle swarm optimization algorithm, fast convergence, high accuracy, in the parameter identification has a very good application)
    2017-04-30 20:06:16下载
    积分:1
  • IEEE802.11
    该书籍详细介绍了802.11底层协议的相关算法机制,能够为802.11的底层协议改造提供最基础的技术支持。(The book details the underlying 802.11 protocol mechanisms related algorithms that can transform the underlying protocol for the 802.11-based technology to provide the best support.)
    2011-01-06 15:06:14下载
    积分:1
  • ILI9342
    ILI9342驱动芯片320*240彩屏驱动,EFM32 EBI驱动方式(ILI9342 driver chip 320* 240 color display driver, EFM32 EBI Drive)
    2020-10-20 17:27:24下载
    积分:1
  • 执行算术运算的Pascal程序
    Pascal program that performs arithmetic
    2020-06-19 03:00:01下载
    积分:1
  • 串口调试器
    用mfc编的一款串口调试器,可进行串口通信等一些基础的操作及源码参考。(A serial debugger compiled with MFC)
    2017-12-29 03:28:21下载
    积分:1
  • 4675465764
    VB将数据库导出到TXT文本文件中,有需要的就下载吧。(VB database export to TXT text file, there is a need to download it.)
    2013-08-22 11:08:07下载
    积分:1
  • XZB
    vb做的写字板小程序,对于初学VB的学生有一定用处。(WordPad applet vb do have some use for the beginner VB students.)
    2012-11-26 15:59:44下载
    积分:1
  • jisuan
    类似windows的计算器功能..有加减乘除乘方运算(Jun comparable number of windows cavity算器 .. bleed at the nose floor features Endure-effect pot算efficiency source side of bridge)
    2008-04-04 22:29:35下载
    积分:1
  • 696518资源总数
  • 105562会员总数
  • 1今日下载