登录
首页 » Visual C++ » account

account

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

  • Calculator
    说明:  一个复杂的智能计算器,可以实现智能计算,以及优先级判断(A complex smart calculator, you can achieve intelligent computing, as well as to determine priority)
    2010-03-25 12:05:50下载
    积分:1
  • meanshift_seg
    用meanshift算法实现图像的平滑和分割的算法(Algorithm used meanshift image smoothing and segmentation algorithms)
    2009-06-17 23:34:05下载
    积分:1
  • 多核程序设计
    对附件data_4_6.txt 中数据进行排序,给出排序运行结果,并输出排在第一位的数字和排在最后一位的数字。(The data in attachment data_4_6. TXT is sorted, and the sorting result is given. The number in the first place and the number in the last place are output.)
    2018-08-14 17:18:09下载
    积分:1
  • calc
    类WinXP计算器,不习惯或对Win7计算器功能不满足的用户和适用。(It s a calculate similar to the WinXP system, it s very useful to the user of dissatisfact to the Win7 system.)
    2012-01-05 22:00:12下载
    积分:1
  • miniSQL
    MiniSQL的大致架构在里面了,可以自己填写里面的模块。。(MiniSQL the general framework in which, you can fill out inside the module. .)
    2011-10-14 22:39:17下载
    积分:1
  • 2008711194473625
    坐标转换 将大地坐标值转换为平面坐标系 由经纬度转换至大地坐标(Coordinate transformation to convert the earth plane coordinates by latitude and longitude coordinates to Geodetic Coordinate Conversion)
    2009-05-19 09:45:00下载
    积分:1
  • ReadWrite
    说明:  简单的文件读写源码 提供给入门者参考 (Read and write simple documents available to the entry-source reference)
    2008-11-30 00:49:09下载
    积分:1
  • SingleNumber
    找出只出现一次的数字,其他数字均出现了2次,时间空间尽量少(Identify only appears once, while other figures have appeared two times to minimize time and space)
    2013-10-24 09:01:25下载
    积分:1
  • Draw1
    Draws lines, polygons, rectangles. The user selects color and drawing function through a menu bar and clicks different points to draw the object.
    2010-03-15 11:31:42下载
    积分:1
  • SHEmptyRecycleBin
    VB使用SHEmptyRecycleBin方法, 依赖于shell32.dll动态链接库清空回收站,点击窗口中的按钮即可一键清空回收站。本源码主要是熟悉SHEmptyRecycleBin函数的使用,这个函数不只有清空回收站的功能,还可以统计查询回收站中的文件数量,占用字节大小等。 (VB using the SHEmptyRecycleBin method, relies on the dynamic link library shell32.dll empty the recycle bin, click on the window button quick clear recycling station. The main source is the use of familiar with the SHEmptyRecycleBin function, this function is not only the empty recycle bin function, can also query statistics the number of files in the recycle bin, occupy the byte size etc.. )
    2013-08-02 16:21:29下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载