登录
首页 » Visual C++ » account

account

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

  • eluosifangkuai
    俄罗斯方块最终版本,是用c语言写的,可自动调整。(The final version of Tetris, with c language, can be automatically adjusted.)
    2015-09-29 09:19:47下载
    积分:1
  • VC++读写Excel文件源代码
    读写excel文件内容,并将其显示到vs界面上(Read and write the contents of the XML file, and display it to the vs interface)
    2017-11-24 15:10:18下载
    积分:1
  • VB 编写的一款矢量图制作工具源代码
    说明:  VB 编写的一款矢量图制作工具源代码,非常不错的,真的。你用用就知道了(vb bianxiandeyikuansiliangzhizuogongju)
    2020-06-18 02:00:02下载
    积分:1
  • jisuanqi
    小的计算器,适合初学者,虽然简陋了点,但很清楚(Calculator, suitable for beginners)
    2012-06-21 20:26:55下载
    积分:1
  • kviso_wave
    单片机仿真软件 集成了源程序编辑、编译、调试、反 汇编等功能于一体。 可仿真MCS51系列、MCS196系列、 Microchip PIC系列CPU(SCM simulation software is integrated with the source program to edit, compile, debug, disassemble functions in one. Simulation of MCS51 series, MCS196, Microchip PIC series CPU)
    2017-09-30 08:39:57下载
    积分:1
  • 合同信息管理系统Excel模板
    说明:  VBA合同管理系统,合同查询、客户信息查询(VBA contract management system, contract query, customer information query)
    2020-03-23 16:55:10下载
    积分:1
  • CaRIne Crystallography 3.1
    说明:  CaRIne Crystallography 3.1,Carine软件用于电子衍射花样标,CaRIne可以画晶体结构并可计算仿真显示绕射型式,CaRIne的交谈功能可以显示。(Carine crystallography 3.1, Carine software is used for electron diffraction pattern mark. Carine can draw crystal structure, calculate and simulate diffraction pattern, and can display conversation function of Carine.)
    2020-11-17 07:43:37下载
    积分:1
  • fapiaoprint
    说明:  一个发票打印程序,含VB源代码,可以打印发票,可自行修改发票样式。(An invoice printing program, including VB source code, can print invoices, can modify the invoice style.)
    2020-06-21 11:20:02下载
    积分:1
  • udf参考
    一些ANSYS 中的FLUENT 仿真UDF实例参考(SOME ANSYS FLUENT UDF example by some body)
    2020-06-16 08:40:01下载
    积分:1
  • PASSFINGER
    说明:  SDK for Passfinger 1010 development
    2019-01-31 20:37:22下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载