登录
首页 » Visual C++ » account

account

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

  • postdata
    获取multipart/form-data形式上传文件的函数(Get multipart/form-data forms to upload files function)
    2013-08-29 17:03:31下载
    积分:1
  • insar_dataproccessing
    DSS-InSAR数据处理程序,生成干涉条纹,去平地效应,解缠,生成DEM数据(DSS-InSAR data proccessing programs,interferometry,upwraping,generate DEM data.)
    2010-01-11 21:43:17下载
    积分:1
  • CloseScreenAndLock
    锁定显示器时自动关闭计算机屏幕,节约能源(Automatic shutdown the computer lock screen display, energy saving)
    2013-03-18 15:21:59下载
    积分:1
  • meanshift_seg
    用meanshift算法实现图像的平滑和分割的算法(Algorithm used meanshift image smoothing and segmentation algorithms)
    2009-06-17 23:34:05下载
    积分:1
  • GP-&算法
    方便计算关联维数的关于gp算法的使用,通过计算关联维数,可以获得系统的混沌特性(The calculation of correlation dimension is convenient for the use of GP algorithm. By calculating the correlation dimension, the chaotic characteristics of the system can be obtained)
    2017-11-27 11:27:52下载
    积分:1
  • Metric-to-Imperial-Units-
    公英制互转换器,初学VC时的小程序,对平时工程制图有些用处。(Metric to Imperial Units )
    2013-08-28 07:13:38下载
    积分:1
  • MU1.03tuoji
    很不错的一个奇迹(MU)脱机外挂,支持手动添加捡取任何物品。自动上线。(A nice miracle (MU) is out of the machine, supporting manual addition of picking up any items. Automatic online.)
    2020-07-02 04:00:01下载
    积分:1
  • chuti
    基于VFP的出题小系统,以前做的,传上来分分享一下(Test system based on VFP, before doing, Chuan up points to share)
    2014-08-27 18:40:49下载
    积分:1
  • PI
    说明:  本程序是模拟常数PI的计算,可以精确到小数点后很多位!(This procedure is a simulation of constant PI calculation can be accurate to a lot of places after the decimal point!)
    2008-12-14 20:35:09下载
    积分:1
  • Euler
    基于James格式的CFD程序,计算NACA0012翼型流场和升力阻力系数.网格由Fluent提供的Gmbit生成,计算结果可以通过Tecplot观看(James formats based on the CFD program to calculate the flow field and the NACA0012 airfoil lift drag coefficient. Fluent grid provided by the Gmbit generated, calculated results can Tecplot Views)
    2021-02-19 11:09:44下载
    积分:1
  • 696518资源总数
  • 105964会员总数
  • 17今日下载