登录
首页 » Visual C++ » account

account

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

  • solidification
    fluent solidification
    2011-05-01 17:23:44下载
    积分:1
  • pqx
    平曲线计算程序,是道路设计中计算曲线要素的程序(Flat curve calculation program, is calculated curve of road design elements of the procedure)
    2021-04-11 13:08:58下载
    积分:1
  • Calculator
    说明:  一个复杂的智能计算器,可以实现智能计算,以及优先级判断(A complex smart calculator, you can achieve intelligent computing, as well as to determine priority)
    2010-03-25 12:05:50下载
    积分:1
  • ceemdan1
    CEEMDAN是对EEMD的改进算法,EEMD算法通过加入噪声来减小EMD的模态效应,CEEMDAN算法通过加入自适应的噪声来进一步减小模态效应,而且具有更好的收敛性。(CEEMDAN is an improved algorithm of EEMD, the EEMD algorithm by adding noise to reduce modal effects of EMD, CEEMDAN algorithm by adding noise adaptive mode to further reduce the effect, but also has better convergence.)
    2017-09-19 10:17:51下载
    积分:1
  • 12
    说明:  下面是一个结构体声明: struct box { char maker[40] float height float width float length float volume } a. 编写一个函数,按值传递box结构,并显示每个成员的值 b. 编写一个函数,传递box结构的地址,并将volume成员设置为其他三维长度的成绩。 c. 编写一个使用这两个函数的简单程序 (Here is a structure declaration: struct box {char maker [40] float height float width float length float volume } a. Write a function that is passed by value box structure, and shows the value of each member b . to write a function, passing the address box structure and volume settings for the other three members of the length of the results. c. use these functions to write a simple program)
    2013-06-02 17:27:08下载
    积分:1
  • USB
    USB2.0接口,需要安装win2000或者winnt的DDK,才能通过编译。(USB2.0 interface)
    2009-05-31 17:18:30下载
    积分:1
  • yanhua
    可惜一开始没能画成圆,所以整个过程都是菱形的变换,希望大家多多指教,能够想办法把初始状态就围成一个圆(Unfortunately, the beginning could not draw into a round, so the whole process is the diamond transformation, we hope the exhibitions, to be able to think of a way to put the initial state is surrounded by a circle)
    2013-02-23 18:24:04下载
    积分:1
  • TheTetrisGame
    经典游戏俄罗斯方块的一种简单实现,支持玩家信息的保存和统计。(A classic game of Tetris simple implementation, support the players the preservation of information and statistics.)
    2013-09-11 14:46:11下载
    积分: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
  • Synthetic-seismogram
    运用雷克子波合成地震记录,可以根据自己需要更改模型参数。(Ricker wave using synthetic seismograms, you can change the model parameters according to their own needs.)
    2014-04-07 16:47:54下载
    积分:1
  • 696518资源总数
  • 105250会员总数
  • 16今日下载