登录
首页 » Visual C++ » account

account

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

  • jisuanqichengxu
    这是vb编写的计算器的源代码,比较容易懂,比较实用(This is the preparation of the calculator vb source code, it was relatively easy to understand, more practical)
    2009-06-03 23:24:31下载
    积分:1
  • dandan
    一个基于 easyX图形函数库的 实现及时制弹弹堂效果的小游戏 源码(a easy game in easyX an windows API )
    2013-06-15 14:38:55下载
    积分:1
  • DS
    说明:  1.管理信息系统(学生成绩) 两种用户等级:管理员和用户,均用用户名和密码登陆,通过识别不同类型的用户名,进入不同的操作界面。 1) 管理员功能: i 用户管理:增加、删除用户; ii 记录录入、修改、删除 iii 查询:单项查询、多项查询、范围查询 iv 分类统计:提供有代表性的统计结果 2) 用户功能: a) 修改密码 b) 查询本用户信息 c) 修改个人信息(1. Management Information System (student performance) two user levels: administrators and users use a user name and password, by identifying different types of user name, into a different interface. 1) The administrator function: i user management: add, delete users ii record entry, modify or delete iii Inquiry: individual inquiries, a number of inquiries, the scope of inquiry iv classification statistics: to provide a representative statistical results 2) user features: a) Change Password)
    2009-01-28 21:35:16下载
    积分:1
  • VB
    说明:  非接触IC读写器读写软件,用于非接触IC卡读写操作(Non-contact IC reader to read and write software for non-contact IC card read and write operations)
    2011-12-06 13:07:53下载
    积分:1
  • 大灰狼8.96+源码1
    大灰狼去后门源码,没有后门的源码!!!!!!(Big gray wolf to the back door source)
    2018-04-01 22:49:07下载
    积分:1
  • Memorize_I19399810132005
    visual basic.net 做的一款记忆游戏(visual memory so one of the game)
    2007-05-03 07:11:22下载
    积分:1
  • GDFtools2.3内部破解版
    GDFtools2.3内部破解_梦幻古龙解包工具 带破解机在里面 告别授权版本 值得拥有!(GDFtools2.3 internal crack _ Dream Cologne unpack tool with crack machine inside farewell authorized version deserve!)
    2020-10-15 17:57:29下载
    积分:1
  • code
    土地折算:在vb环境下基于mo的不同等级土地折算系统的开发,(Land conversion: vb environment in different grades of land-based mo conversion system development,)
    2010-05-28 11:24:15下载
    积分:1
  • 串口通信i
    说明:  串口通信 串口数据传输 通过串口将上位机数据,发送至下位机,下位机将数据传输给上位机并显示(C++ COM CONSTRACT)
    2019-04-24 14:37:42下载
    积分:1
  • Elingcs
    说明:  EXCEL精灵 反编译原代码 ,这段代码幸亏不是全球数据,要不会把编译器气冒烟的(EXCEL Wizard Decompiles Original Code)
    2020-06-21 21:00:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载