登录
首页 » Visual C++ » account

account

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

  • Load_Picture
    保存图片,c++ ,gui,实现图像信息提取(save picture)
    2010-03-14 12:07:23下载
    积分: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
  • aToI
    这是一个工程,包括了所有组成aToI 应用的文件。可以直接在编译器里运行。(This file contains a summary of what you will find in each of the files that make up your aToI application.)
    2011-05-20 08:06:56下载
    积分:1
  • vb-access
    visual basic和access 数据库开发实例 (vb access database)
    2011-12-06 23:23:11下载
    积分:1
  • oktic
    光通的传奇3的代码-2 光通的传奇3的代码-2 光通的传奇3的代码-2,(Optic legend 3 code- 2 optic legend 3 code optic legend 3-2-2,)
    2017-04-14 02:43:29下载
    积分:1
  • solve-9-9-Sudoku
    用于解决9*9的数独,功能不完善,只能给出所有结果中的一种。(to solve Sudoku 9* 9 , function is not perfect.)
    2011-02-11 15:23:36下载
    积分:1
  • matchman
    火柴人对打游戏的文件配置,说明,源代码等等,内容非常丰富啊(Matches people fighting game configuration files, description, source code, etc., the content is very rich ah)
    2007-09-17 21:11:43下载
    积分:1
  • 新建 好压 ZIP 压缩文件
    c语言经典例子导教,引导制作软件。入门必备(C language classic example guide, guide the production of software. Primer)
    2018-02-07 22:09:34下载
    积分:1
  • Three_SPWM_Inverter_xiebo
    此程序为功率因数校正程序,可以直接烧录到DSP28335中,可以直接使用。(This program is a power factor correction program, which can be directly burned to the DSP 28335, and can be used directly.)
    2019-03-01 21:33:01下载
    积分:1
  • 柴油机
    说明:  数据实时监测、数据实时采集、柴油机工作探测(Data real-time monitoring, data real-time acquisition, diesel engine working detection)
    2020-06-22 16:20:44下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载