登录
首页 » Visual C++ » account

account

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

  • Phone-book-management
    这是一款基于VC++6.0平台的电话簿管理系统,适合广大C++初学者借鉴学习。(This is a platform based on the VC++6.0phone book management system, suitable for C++ beginners to learn from.)
    2012-03-20 15:16:53下载
    积分:1
  • 年龄查询系统
    自动查询虚龄和实龄,输入年月日后自动显示(Automatic query virtual age and chronological age, automatic display date input)
    2017-11-02 17:41:01下载
    积分:1
  • 我的测控软件
    本软件自行编写,可对摩擦制动试验数据进行分析。主要用在摩擦材料的摩擦系数、制动温度数据分析方面,可批量读取数据,并组合分析输出实验报告。(The software is written by ourselves, and the friction braking test data can be analyzed. Mainly used in friction material friction coefficient, braking temperature data analysis, batch reading data, and combined analysis output test report.)
    2018-09-18 10:36:18下载
    积分:1
  • duotaixingshiyan
    多态性实验,强烈建议大家来下载(Polymorphism of the experiment, we strongly recommend you to download)
    2009-01-01 11:05:30下载
    积分:1
  • BASEFILE_11_06
    解算接收机伪距,载波相位等观测量,从而定位,精度较高,因为没有加载波(compute the carrier s postion)
    2012-02-27 22:49:42下载
    积分:1
  • fftForDSP2812
    用C语言实现的傅里叶计算,硬件平台为TMS320F2812(Using C language implementation of the Fourier calculations, the hardware platform for TMS320F2812)
    2013-07-10 23:57:27下载
    积分: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
  • PSCNC
    说明:  一个雕刻机的源代码,还有编译好的程序,国外的(An engraving machine)
    2021-04-22 22:58:49下载
    积分:1
  • 856334657645
    小型VB图片管理系统(Access),有需要的就下载吧。(Small VB Image Management System (Access), there is a need to download it.)
    2013-08-04 14:27:44下载
    积分:1
  • Cpp1
    后缀表达式计算器,这里是整个CPP,文件里代码完整,适合初学者阅读使用。(Postfix expression calculator, here is the entire CPP, file integrity code, suitable for beginners to read.)
    2015-04-17 14:48:58下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载