-
account
设计一个名为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)
- 2013-06-01 13:21:54下载
- 积分:1
-
音乐播放器
说明: VB音乐播放器,实现音乐播放功能,可以直接使用,可以在此基础上添加自己的程序(VB Music Player, to achieve music playback function, can be used directly, you can add their own programs on this basis.)
- 2020-06-19 07:40:02下载
- 积分:1
-
skyblue_Rect
俄罗斯方块 ,经典游戏程序,vc实现的,喜欢的朋友可以看下,有价值(Tetris, the classic game program, vc realized, like a friend may have a look, valuable)
- 2013-01-24 09:12:32下载
- 积分:1
-
myTask0
有的科技图书会附有索引,其中列出书中重要术语出现的页码,便于读者查看。试设计一个类似的程序。输入是一个英文文本文件,输出是文件中关键字及其出现的行号的列表并按照关键字有序排列。程序运行方式:>index inputfile keys outputflie
(Some books will be accompanied by technology index, which lists important terms appear in the book pages, easy to readers to view. Try to design a similar procedure. English text input is a file, the output is a file that appears in the keywords and their line numbers list and ordered according to keywords. Program run mode:> index inputfile keys outputflie)
- 2013-10-28 21:15:13下载
- 积分:1
-
STL
c++ 标准模板库,用于c++标准模板库的学习和使用(this is a c++ stl, you can do many things with it)
- 2018-11-27 19:38:46下载
- 积分:1
-
jishiqi1
使用C++实现的小程序。计时器单位转换。输入为整型数单位为秒,输出格式为DDD:HH:MM:SS的时间。华为机试。(Use C++ achieve applet. Timer unit conversion. Enter an integer number of seconds, the output format is DDD: HH: MM: SS time. Huawei machine again.)
- 2013-12-06 09:48:52下载
- 积分:1
-
YLSW
语言之间跨平台的接口调用,非常有用,规避单语言功能(Cross platform interface calls between languages are very useful to avoid single language functions)
- 2017-12-19 13:41:20下载
- 积分:1
-
shurce
k在VC中对话框程序中实现切分窗口的控件类,不错的源码(K in VC dialog box procedure of segmentation window in the control class, a good source)
- 2017-06-01 17:21:19下载
- 积分:1
-
Patch001
说明: 930c patch lod001 lmwin
- 2020-01-08 05:58:57下载
- 积分:1
-
SSubTmr
一个外国人写的 VB6 子类和定时器,提供源代码。
- 2013-07-12 11:14:37下载
- 积分:1