登录
首页 » Visual C++ » account

account

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

  • The-fireworks-display
    一个可以在自己的电脑屏幕上生成烟花的小程序,可以烟花没有设计成圆的(One can generate fireworks on their computer screen applet, you can not designed to circle fireworks)
    2014-02-25 17:31:18下载
    积分:1
  • ?迅雷下载Demo
    说明:  利用迅雷提供的sdk,制作的demo.程序在vs2010下面可以编译运行(Using SDK provided by Xunlei, the demo. program can be compiled and run under VS2010)
    2019-06-04 22:02:37下载
    积分:1
  • legrnonguithwith
    服务器程序,可实现与客户端的通信,适合于初学者的学习,(The server program, and can realize communicate with the client, suitable for beginners learning,)
    2017-03-24 17:06:44下载
    积分:1
  • MyMFC
    说明:  在视图区画正弦函数曲线,并且在一个菜单下以对话框形式输入正弦图的起点和终点坐标。(In the view area sine curve drawing, and in the form of a menu in the dialog box enter the start and end the sine map coordinates.)
    2011-04-02 17:02:04下载
    积分:1
  • LinuxMulti-threadProgrammingManual
    Linux下多线程编程指南,pdf格式,介绍了Solaris操作系统中POSIX线程和Solaris线程的多线程编程接口,该指南将指导程序员如何创建性新的多线程程序以及如何向现有的程序中添加多线程(Under the multi-threaded Linux Programming Guide, pdf format, introduced the Solaris operating system, POSIX threads and Solaris threads of the multi-threaded programming interface, the guide will guide programmers how to create multi-threaded nature of the new procedures and how to add to an existing program Multithreading)
    2010-01-29 10:13:32下载
    积分:1
  • QP
    说明:  二次规划.c,看题目就知道了二次规划 QP(QP QP)
    2009-09-22 19:59:29下载
    积分:1
  • tongxunlu
    通讯录中的每一个信息包括姓名(规定字节数为15个)、电话(规定字节数为15个)和工作单位(最大字节数为30个)等信息。(Each information including the name of the mail list ( specified byte number 15 ), phone ( specified byte number 15 ) and work units ( the maximum number of bytes to 30 ) and other information.)
    2013-01-24 21:08:29下载
    积分:1
  • 列主元高斯消去法c++
    利用c++语言实现了列主元高斯消去法求解方程组的过程。(Using c++ language to achieve the main element Gauss elimination method for solving equations process.)
    2017-08-14 16:07:13下载
    积分:1
  • Puzzle-cPP
    说明:  自己写的拼图游戏,vs2008,附带音乐和鼠标点击音乐(Write your own jigsaw puzzle, vs2008, incidental music and music mouse clicks)
    2011-04-06 15:20:05下载
    积分:1
  • 2
    说明:  电子地图管理系统,实现文件的读取,检索,与排序(Electronic map management system, document read, search, and sort)
    2013-07-07 15:52:11下载
    积分:1
  • 696518资源总数
  • 105651会员总数
  • 15今日下载