登录
首页 » Visual C++ » account

account

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

  • ptdma
    可把一块图片分割几部份,切片数量可由用户定制,游戏开始后顺序打乱,然后让你拼图。(A picture can be split into several parts, cut the number of user customization, upset the order after the start of the game, and then let you puzzle.)
    2011-04-20 22:12:07下载
    积分:1
  • ctovb
    VB实现将C++头文件转换为VB模块的源程序.(VB implementation will c++ header file is converted into a VB source program module.)
    2013-08-07 18:56:55下载
    积分:1
  • expat_only_with_header_and_lib
    expat lib and include files(expat lib)
    2012-05-06 19:27:17下载
    积分:1
  • exchanger
    本软件是一款关于换热器的计算软件,对从事热工计算的朋友有帮助。(This software is a on the heat exchanger calculation software for the calculation of workers engaged in hot friends have helped.)
    2008-03-31 17:45:43下载
    积分:1
  • iii
    孤独的运货员aaaaaaaaaaaaaaaaaaaaaa(Lonely delivery staff aaaaaaaaaaaaaaaaaaaaaa)
    2013-11-11 22:30:36下载
    积分:1
  • CAN_bootloader
    freescale .S19目标文件,走CAN线通信的bootloader上位机,要么不上传,上传的都是经典(freescale bootloader Client)
    2013-10-09 08:54:37下载
    积分:1
  • SendGoose
    模拟GOOSE报文发送过程,GOOSE报文的编码。(Analog GOOSE message sending process)
    2020-09-10 16:28:00下载
    积分:1
  • tiaoyitiao
    微信跳一跳stm32程序,带键盘,得用尺子量,里面有介绍(Intelligent rc522 water card, with PC end software, MCU used is stm32)
    2018-01-17 18:49:03下载
    积分:1
  • 变色窗体
    一个vb变色窗体,非常漂亮,会变色,适合新手(A VB database programming examples: address book program source code)
    2017-08-17 00:39:19下载
    积分:1
  • spatial_toolbox_2
    用于matlab的空间计量功能,集成了一系列的说明等(spatial_toolbox for matlab)
    2017-09-04 00:01:44下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载