登录
首页 » Visual C++ » account

account

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

  • 2016-ao-camcalib
    这是一篇关于相机标定的文章。该方法的特点是使用LCD屏幕而不使用棋盘格标定板。(This is an article about camera calibration. The characteristic of this method is to use LCD screen instead of checkerboard calibration board.)
    2018-12-25 10:48:29下载
    积分:1
  • RS232 Upgrade Loader Tool M3510
    UPGRADE tool rs232. Download
    2019-04-10 00:20:11下载
    积分:1
  • vector
    说明:  用c语言实现电机仿真-基于恒定磁链的转子磁链控制。(Using c language realize electrical simulation- based on a constant flux of the rotor flux control.)
    2008-09-22 16:00:20下载
    积分:1
  • VB算法计算器
    一款加解密计算,字符顺序改变,mod5加密,的软件。(A encryption and decryption calculation, character order change, mod5 encryption, software.)
    2020-06-16 13:00:01下载
    积分:1
  • PQ12154
    PQ分解法,有些还需要改进,该程序所对应的例子是东南大学陈珩编的《电力系统稳态分析(第二版)》的例4-5(PQ decomposition, some also needs to be improved, The procedure corresponding to the example of Southeast University, Chen Heng addendum to the "steady-state power system analysis (second edition)" 4-5 cases)
    2020-07-03 08:20:02下载
    积分:1
  • VMware(1)
    it is useless, i am very sorry
    2020-06-15 22:35:01下载
    积分:1
  • array-master
    说明:  矩阵计算array类C++代码, 可直接使用,也可作为继承的父类(Matrix computation array class C++ code)
    2019-06-30 21:15:29下载
    积分:1
  • VC-generated-excel-histogram
    vc6.0 excel2003 用c++生成excel表格并且绘制柱状图 一步完成不需要操作excel(vc6.0 excel2003 c++ excel spreadsheet to generate and draw a histogram step does not need to operate excel)
    2013-05-17 15:57:41下载
    积分:1
  • 大作业3
    MFC画板,简单实现了画线画圆椭圆等各项功能,代码简单易懂适合学习(MFC Sketchpad, simple realization of painting lines, painting circles, ellipses and other functions, the code is simple and easy to understand, suitable for learning)
    2017-08-14 15:37:33下载
    积分:1
  • Building a window
    设计一个简单VB程序: 它由一个窗体、一个文本框和3个命令按钮组成。窗体的标题为"Visual Basic 程序设计示例",当用户单击命令按钮“显示”时,文本框中出现“欢迎使用Visual Basic 6.0”,窗体上显示“你好”,单击命令按钮“清除”时,清除文本框中显示的内容和窗体上的内容,单击命令按钮“结束”时,结束程序。(Design a simple VB program: It consists of a form, a text box and 3 command buttons. The title of the form is "Visual Basic programming example", when the user clicks the command button "display", the text box appears "welcome to use Visual Basic 6", the form on the form "hello", click the command button "clear", clear the contents of the text box and the contents of the form on the form, click the command button "knot" When "beam", the end of the program.)
    2018-04-21 16:11:40下载
    积分:1
  • 696518资源总数
  • 104269会员总数
  • 42今日下载