CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 其它 书籍源码

文件名称:saving-account

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2013-05-12
  • 文件大小:
    1.21kb
  • 已下载:
    1次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
    别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容来自于网络,使用问题请自行百度

创建SavingsAccountclass。使用StaticData部分成员存储theannualInterestRateto店每年提取的每个储户的利率。每个类的成员包含privatedata的的成员savingsBalanceindicating金丹目前有存款量。提供一个成员函数calculateMonthlyInterestmember的功能,计算由乘以12 balancebyannualInterestRatedivided的月息 ,这种兴趣应加savingsBalance的。提供一个staticmember功能modifyInterestRatethat的的设置静态annualInterestRateto的一个新值。写类SavingsAccount的adriver程序测试。实例化两个不同的对象类SavingsAccount,saver1and saver2的结余为$2000.00和3000.00美元的,分别。设置annualInterestRateto3percent,然后计算出每月利息,并为每个储户打印新的结余。然后设置theannualInterestRateto4%,计算出下个月的利息和eachof运算储户打印新的结余。-H12

H12

Create a SavingsAccountclass. Use a staticdata member to store theannualInterestRateto store theannual interest rate for each of the savers. Each member of the class contains a privatedata member savingsBalanceindicating the amount the saver currently has on deposit. Provide a member function calculateMonthlyInterestmember function that calculates the monthly interest by multiplying the balancebyannualInterestRatedivided by 12 this interest should be added to savingsBalance. Provide a staticmember function modifyInterestRatethat sets the static annualInterestRateto a new value. Write adriver program to test class SavingsAccount. Instantiate two different objects of class SavingsAccount,saver1and saver2, with balances of $2000.00 and $3000.00, respectively. Set annualInterestRateto 3percent, then calculate the monthly interest and print the new balances for each of the savers. Then set theannualInterestRateto 4 percent, calculate the next month’s interest and print the new ba
(系统自动生成,下载前可以参看下载内容)

下载文件列表

saving account/
saving account/main.cpp
saving account/SavingAccount.cpp
saving account/SavingAccount.h

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com