登录
首页 » Visual C++ » account

account

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

  • vb_updata
    VB 自动升级,让你的程序自动更新。感谢所有支持我的人,谢谢你们,你们辛苦了。(vb updata)
    2009-10-31 13:10:56下载
    积分:1
  • C-LANGUAGE
    C语言教程讲义(谭浩强).pdf初学者必须要看的讲义(C language tutorial notes (Tan Haojiang). PDF beginners must see notes )
    2014-09-23 15:12:59下载
    积分:1
  • Ruler
    说明:  VC++增强版电子标尺软件的源代码,透明窗体的实现是本程序的关键性技术,本标尺采用两点测量、多点测量、多角度测量的方法,配合窗体透明特效,完成一个逼真好用的电子标尺,这样,当你在网页上需要确定图片及媒体的宽度和高度时,就可用这个软件轻松的量出它的尺寸了。 (Enhanced version of VC++ source code of the software electronic scale, transparent form of implementation is the key technology of this procedure, the use of two measurement scale, multi-point measurement, multi-angle measurement method, with transparent window effects, to complete a real good using electronic ruler, so that when you need to determine the picture on the website and the media width and height, you can use this software easily measure out the size of it.)
    2011-04-08 22:54:58下载
    积分:1
  • MySqlite
    Sqlite的基本操作示例,给初学者提供的简单示例。(Sqlite basic examples of operations, to provide a simple example for beginners.)
    2017-06-13 18:40:54下载
    积分:1
  • 4
    说明:  PC与PDA数据交互系统 PC与PDA数据交互系统 PC与PDA数据交互系统(Interactive PC and PDA data system PC and PDA Data interactive system Interactive System PC and PDA data)
    2010-07-29 22:02:49下载
    积分:1
  • Model_weibo
    说明:  用列文伯格-马夸尔特法(Levenberg-Marquardt)进行计算,该算法既有高斯-牛顿法的局部收敛性,又具有梯度下降法的全局性。(The Levenberg-Marquardt method is used for calculation. This algorithm has both the local convergence of the Gauss-Newton method and the globality of the gradient descent method.)
    2020-09-19 18:37:00下载
    积分:1
  • wenjiankunbanqi
    这是VC++实现的一个文件捆绑软件的源码(This is a file bundled software source code VC++ achieve)
    2012-07-12 06:07:40下载
    积分:1
  • 11-5.5
    汉字屏显示实例,可以学习屏幕的使用,以及汉字的显示,(Chinese screen display examples)
    2013-08-18 18:22:05下载
    积分:1
  • 972883872013_BEPS_GLOBAL_REVISE_5_4
    可用于beps模型的构建,运用visual c++代码(Can be used to construct the BEPS model)
    2020-11-10 19:39:46下载
    积分:1
  • CTIEUR1
    创建Windows xp中按钮样式解决方法:使用标签控件与形状控件一起形,()
    2018-04-01 08:29:33下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载