登录
首页 » Visual C++ » account

account

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

  • XYRaclient
    非常好的管理类软件,各种功能非常齐全,欢迎使用!!!(Very good management class software, various functions are very complete, Welcome! ! !)
    2013-01-04 17:37:03下载
    积分:1
  • vcdll
    VC++从DLL中获得资源的小实例源代码,从DLL中获得背景图像,可者是一个图标资源或是其它类型的文件,总之,学会了一种,就可以举一反三,灵活掌握了。(VC++ from the DLL resources, source code examples to get a background image from the DLL, can an icon resource, or other types of documents, in short, learned, you can learn by analogy, flexibility.)
    2012-05-19 02:34:41下载
    积分:1
  • 简易网络嗅探器
    网络嗅探器在网路安全方面扮演很重要的角色。使用网络嗅探器可以把网卡设置为混杂模式,并可实现对网络上传输的数据包的捕获与分析。次分析结果可供网络安全分析之用,更有可能被用来做一些黑客行为。本文将详细介绍嗅探器的实现原理,并给出一个简单的实例。(Network sniffer plays a very important role in network security. The network sniffer can be used to set the network card as promiscuous mode, and it can capture and analyze the data packets transmitted on the network. The results of sub analysis can be used for network security analysis, and more likely to be used to do some hacker behavior. In this paper, the implementation principle of sniffer is introduced in detail, and a simple example is given.)
    2017-10-27 20:45:09下载
    积分:1
  • dadishu
    打地鼠输入输出设备买一些机器人来帮他,这些机器人很厉害,一个就可以顶上十个,原因很简单,他可以打中所有出现在和它同行或同列的地鼠(Input and output devices to play hamster robot to help him buy some of these robots is very powerful, can be a top ten, for the simple reason that he can hit it all in and out to peers or with the mouse)
    2011-07-05 16:01:37下载
    积分:1
  • SetAccessData
    对已经存在的Accsess数据库表添加新字段并复值(right Accsess already existing database table and add a new field of Complex)
    2006-08-10 21:15:31下载
    积分:1
  • myeyes
    说明:  使用vc++6.0开发的一个小例子,保护视力程序,界面简单,主要是实现将应用放到系统托盘中。(Use vc++ 6.0 to develop a small example of procedures to protect their eyesight, the interface simple, the main factor will be applied to achieve on the system tray.)
    2008-11-23 15:49:26下载
    积分:1
  • 新建文件夹
    道路坐标计算,道路坐标匝道放样、线元法计算坐标(Road coordinate calculation)
    2018-07-02 18:44:27下载
    积分:1
  • ComTest
    基于mfc的串口通信程序,基于mfc中串口控件的串口通讯(Serial communication program based on MFC)
    2021-04-10 10:28:59下载
    积分:1
  • 56774584754
    VB绘制公交线路节点演示程序代码,有需要的下。(VB rendering node demo code, bus lines in need.)
    2013-08-29 10:16:56下载
    积分:1
  • fdsgfsgfdsg
    电力拖动自动控制系统,对大家很有用,希望多下载,呵呵呵 (Automatic control system for electric drive, useful for all of us, wanting to download,呵呵呵)
    2008-12-23 23:41:22下载
    积分:1
  • 696518资源总数
  • 106164会员总数
  • 18今日下载