登录
首页 » Visual C++ » account

account

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

  • 偶尔小工具(简单版)魔力超强外挂
    魔力宝贝 私服辅助 偶尔小工具 自动战斗 高速战斗 脚本(moli sf software atuo fight)
    2017-11-23 21:10:50下载
    积分:1
  • alarm
    一个定时提醒的程序,可以任意设置定时时间,有皮肤,带有最小化到通知栏,抖动及声音提醒,提醒时窗口置顶等功能。(A timed reminder program that can be set regular time, have skin with minimized to the notification bar, jitter and voice reminder, reminder window when the top and other functions.)
    2014-02-05 19:52:18下载
    积分:1
  • VCdatabase
    说明:  详细介绍了用VC.NET开发城市基础地理数据库的实例,用于城市测绘,城市基础地理系统建设的重要参考。(Described in detail with the development of urban infrastructure VC.NET examples of geographic database for urban mapping, urban infrastructure an important geographic reference system.)
    2009-08-17 22:36:26下载
    积分:1
  • vs
    说明:  类似于vs,浩方对战平台源码,仿写的一个平台程序(Similar to a platform for program vs. ho war platform source, Imitative)
    2012-06-25 17:33:52下载
    积分:1
  • fangkuai
    说明:  俄罗斯方块。最经典的益智游戏,不仅可以学习,还能增加想要的功能(Tetris. The most classic puzzle game can not only learn, but also increase the function you want)
    2010-04-14 10:37:25下载
    积分:1
  • VB创建ACCESS数据库
    说明:  VB 创建 ACCESS 数据库,个人练习,一起学习,谢谢(VB Creates ACCESS Database)
    2020-06-23 15:40:02下载
    积分:1
  • cppWindowsSerivceDemo
    说明:  这个文件没用,用来赚点积分的。我为了下载别的文件。(this file is no useful,just for win score.)
    2020-06-24 16:40:02下载
    积分:1
  • 同一机器上的不同端口 UDP 通信
    局域网的文本通信示例; 简单演示了一个聊天工具的基本功能(a text communication demo in VB for LAN network)
    2018-10-24 23:08:50下载
    积分:1
  • 2016-ao-camcalib
    说明:  这是一篇关于相机标定的文章。该方法的特点是使用LCD屏幕而不使用棋盘格标定板。(This is an article about camera calibration. The characteristic of this method is to use LCD screen instead of checkerboard calibration board.)
    2018-12-25 10:48:29下载
    积分:1
  • mpxviewer
    A viewer for the games Metroid Prime 1-3 (A viewer for the games Metroid Prime 1-3 This was a research project I did to mainly help me understand how to do 3D programming, early in the beginning revel8n messaged and asked if I wanted to help, heck yes I did.)
    2011-05-25 11:36:50下载
    积分:1
  • 696516资源总数
  • 106927会员总数
  • 1今日下载