登录
首页 » Visual C++ » account

account

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

  • OK-OK-HW-SPI
    说明:  Spi connect to mmc tested is ok
    2020-06-19 19:20:02下载
    积分:1
  • examples
    这是LAMMPS中的所有例子,行接触到LAMMPS的新手,不知道在哪下载,我帮你么你列出来了。(This is all the examples in LAMMPS, line access to LAMMPS novice, do not know where to download, I help you you you listed.)
    2018-11-01 17:49:00下载
    积分:1
  • caipiao
    用C实现的自己使用的双色球分析源码。自己一直在用,还是有一定的参考价值哦。(C achieved using two color analysis of their source. He has been in use, or have a certain reference value oh.)
    2013-07-26 16:49:53下载
    积分:1
  • interactions
    qt实现的遗传算法 解决最大最小值得问题 (qt genetic algorithm to achieve the maximum and minimum worth solving problems)
    2013-12-13 02:50:38下载
    积分:1
  • N-sheets
    以G列分成多个工作表(以宏运行VBA) (Sub aa() Dim a As Integer, b As Integer, c As Integer, sh As Worksheet For a = 2 To [g65536].End(3).Row If Cells(a, 7) <> Cells(a- 1, 7) Then b = a End If c = Range("g:g").Find(Cells(a, 7), , , , , xlPrevious).Row Set sh = Sheets.Add(, Sheets(Sheets.Count)) sh.Name = Sheets("sheet1").Cells(a, 7).Value With Sheets("Sheet1") Sheets("Sheet1").Range(.Cells(b, 1), .Cells(c, 10)).Copy Destination:=sh.[a2] Sheets("Sheet1").Range("a1:j1").Copy Destination:=sh.[a1] a = c End With Sheets("Sheet1").Select Next End Sub )
    2013-05-03 08:50:54下载
    积分:1
  • tiny.vn_1.2.1
    This is the perfect game company game PCK file to see the source code
    2018-07-14 22:31:53下载
    积分:1
  • 矩阵按键
    STM32F103RCT6矩阵键盘,4×4键盘,按键串口打印(STM32F103RCT6 Matrix Keyboard, 4*4 Keyboard, Key Serial Port Printing)
    2020-06-19 02:00:01下载
    积分:1
  • multifractal
    平均功率谱密度多维分形,可以计算二维位场数据的分维值(Average power spectral density multi-dimensional fractal, can calculate the two-dimensional potential field data, fractal dimension)
    2008-03-18 22:34:25下载
    积分:1
  • 11-5.5
    汉字屏显示实例,可以学习屏幕的使用,以及汉字的显示,(Chinese screen display examples)
    2013-08-18 18:22:05下载
    积分:1
  • test_database
    利用mfc编程实现acess数据库的存储与访问,对于小型的数据库很实用(Mfc programming using acess database storage and access, the database is very useful for small)
    2011-11-29 10:27:49下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载