登录
首页 » Visual C++ » account

account

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

  • guide_in_cpp
    说明:  C++编程指南电子版 ,林锐博士的多年C++编程经验总结,其中C++编程中需要注意的问题和编程技巧总结的不错 (C++ programming guidelines electronically, Dr. Lin Rui years of Experience in C++ programming, including C++ programming problems that need attention and good programming skills summary)
    2010-04-17 11:17:11下载
    积分:1
  • Programs
    蒙特卡洛模拟光子在生物组织中的传输途径, 蒙特卡洛模拟光子在生物组织中的传输途径(Monte Carlo simulation)
    2017-11-05 15:01:04下载
    积分:1
  • tree
    说明:  二叉树运用,简单背包问题,是本人初学数据结构的作业,(Bintree use, simple knapsack problem, is my data structure beginner operations,)
    2008-11-23 17:08:35下载
    积分:1
  • word属性统计
    说明:  VBA统计多个WORD文档页数、字数图片等(VBA counts pages, words and pictures of multiple WORD documents.)
    2019-04-01 17:54:48下载
    积分:1
  • Project 1
    1. Image reduction: ? Alternative line reduction ? Fractal linear reduction to reduce images to any smaller size 2. Use two images to perform image enlargement: ? Pixel replication ? Nearest enlargement ? Bilinear interpolation ? Bicubic interpolation ? Fractal linear expansion to expand images to any larger size 3. Perform negative image operation ? On gray images ? On color images(1. Image reduction. 2. Use two images to perform image enlargement. 3. Perform negative image operation.)
    2018-03-07 15:58:17下载
    积分:1
  • FiveChess
    一个简单的五子棋可联网游戏源代码。。此代码对于一些入门玩家很家帮助!(A simple game of backgammon can be networked source. . This code is for some players to start at home to help!)
    2011-09-20 20:32:07下载
    积分:1
  • 基于c++的智能扫地机器人路径选择的算法
    基于C++语言的路径规划算法研究,对学习机器人路径规划有帮助!(The path planning algorithm based on C++ language is helpful to the path planning of learning robot.)
    2020-09-12 19:08:00下载
    积分:1
  • 1075_Tanning_Salon
    西南交通大学ACM 1075题解源码,C++编写,保证能够AC(Southwest Jiaotong University, ACM 1075 to a problem source, C++ written guarantee that AC)
    2009-12-06 14:26:15下载
    积分:1
  • Eros
    用c语言编写的俄罗斯方块游戏源码,控制台下的模拟(Tetris source code written in c language, simulation of the console )
    2013-05-02 20:00:56下载
    积分:1
  • cx
    说明:  用c语言编写的俄罗斯方块,一款益智游戏,挺简单的(C language Tetris, a puzzle game, very simple.)
    2012-12-12 20:46:35下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载