Java代写 SavingsAccount存钱 Programming Assignment 3代写Java设计

IntroductionRequirementCS37 Programming Assignment 3Total Point: 12 Due Date: 11/07/2016, MondayTasks:A.Create a SavingsAccount class.1.Define a static data member annualInterestRate (type double value such as 0.03, i.e. three percent) for all the savings accounts.2.Each instance of the class contains the following private data members:accountNumber (integer from 1000 to 4999),accountOwner (owner’s name as a string),accountBalance (type double value).3.Provide the following member functions:calculateMonthlyInterest() computes the monthly interest using formula:m_interest = accountBalance * annualInterstRate / 12;This interest should be added to accountBalance.deposit(double amount) adds amount to accountBalnce.withdraw(double amount) deduct amount from accountBalance. No overdraft is allowed. The function should return a false if overdraft, otherwise returns a true value.checkBalance() to print out the current accountBalance. This is a const function and will not modify the content of savingsAccount object.4.Provide a static member function modifyInterestRate that sets the static member annualInterestRate to a new value (for example, 0.05 for five percent).5.Define a friend function, transferFund(SavingsAccount a, SavingsAccount b, double amount) which withdraws $amount from account a and deposit it to account b. The function should return false if transfer fails (due to insufficient fund), else returns a true.B.Write a driver program to test class SavingsAccount.Create three instances of SavingsAccount, say savings1, savings2 and savings3, using constructors with initializer list to set the values of accountNumber, accountOwner and accountBalance.Set the annualInterestRate to 3 percent (0.03). Then calculate the monthly interest and print the new balances for each of the savers.Make some transactions (deposits and/or withdraws) from each savings account. Print some messages showing these transactions (accountNumber, amount of transaction and resulting balance).Check and print out the balances of all three accounts.Then set the annualInterestRate to 5 percent (0.05), calculate the next month’s interest and print the new balance for each of the savers.Transfer a small amount of fund (say $100) from one account to another using the transferFund() function. Print out the message about this transaction (the amount transferred, the from/to accountNumber and accountBalnce, transfer success/fail, etc.).C. Turn in the source code, console I/O dialog, and program output for grading.& 本团队核心人员组成主要包括BAT一线工程师,精通德英语!我们主要业务范围是代做编程大作业、课程设计等等。我们的方向领域:window编程 数值算法 AI人工智能 金融统计 计量分析 大数据 网络编程 WEB编程 通讯编程 游戏编程多媒体linux 外挂编程 程序API图像处理 嵌入式/单片机 数据库编程 控制台 进程与线程 网络安全 汇编语言 硬件编程 软件设计 工程标准规等。其中代写编程、代写程序、代写留学生程序作业语言或工具包括但不限于以下范围:C/C++/C#代写Java代写IT代写Python代写辅导编程作业Matlab代写Haskell代写Processing代写Linux环境搭建Rust代写Data Structure Assginment 数据结构代写MIPS代写Machine Learning 作业 代写Oracle/SQL/PostgreSQL/Pig 数据库代写/代做/辅导Web开发、网站开发、网站作业ASP.NET网站开发Finance Insurace Statistics统计、回归、迭代Prolog代写Computer Computational method代做因为专业,所以值得信赖。如有需要,请加QQ:99515681 或邮箱:[email protected] 微信:codehelp

QQ:99515681 或邮箱:[email protected] 微信:codehelp

你可能感兴趣的:(Java代写 SavingsAccount存钱 Programming Assignment 3代写Java设计)