Discount Get BMIS 209 ALL WEEKS Solution ONLY $99.99 $121.93
BMIS 209 Week 1 - Write an application that asks the user to ente... [$9.99]
BMIS 209 Week 2 - Develop a C# application that inputs one salesp... [$15.99]
BMIS 209 Week 3 - Write a recursive method called Power(base, exp... [$15.99]
BMIS 209 Week 4 - Create a class called SavingsAccount [$19.99]
BMIS 209 Week 5 - Create an inheritance hierarchy that a bank mig... [$19.99]
BMIS 209 Week 6 - Develop a polymorphic banking application using... [$19.99]
BMIS 209 Week 7 - Based on the program you created for Assignment... [$19.99]
BMIS 209 Week 8 - General Background Information [$29.99]
Get Selected Weeks Solution with ONLY NOT Add Selected Tutorials To Cart
BMIS209 BMIS 209 BMIS/209 - Assignment 4 - Week 4 - Module 4 - Create a class called SavingsAccount.
    BMIS209 BMIS 209 BMIS/209 - Assignment 4 - Week 4 - Module 4 - Create a class called SavingsAccount.

BMIS209 BMIS 209 BMIS/209 - Assignment 4 - Week 4 - Module 4 - Create a class called SavingsAccount.

$19.99

BMIS209

Programming Assignment 4 Instructions

Create a class called SavingsAccount.  Use a static variable called annualInterestRate to store the annual interest rate for all account holders.  Each object of the class contains a private instance variable savingsBalance, indicating the amount the saver currently has on deposit. Provide method CalculateMonthlyInterest to calculate the monthly interest by multiplying the savingsBalance by annualInterestRate divided by 12 – this interest should be added to savingsBalance.  Provide static method setAnnualInterestRate to set the annualInterestRate to a new value. 

Write an application to test class SavingsAccount. Create three savingsAccount objects, saver1, saver2, and saver3 with balances of $2,000.00, $3,000.00, and 0.00, respectively.  Set annualInterestRate to 4%, then calculate the monthly interest and display the new balances for both savers.  Then set the annualInterestRate to 5%, calculate the next month’s interest and display the new balances for both savers.

Technical Requirements:

Create SavingsAccount class with static variable annualInterestRate and private instance variables savingsBalance (double) and savingsAccountName (string).

Create a mutator method to set the savingsAccountName.  Call this method setSavingsAccountName.  The method should take a string argument and return void.

Create an accessor method to retrieve the savingsAccountName.  Call this method getSavingsAccountName.  The method should take no arguments and return a string (i.e. the savingsAccountName).

Create a mutator method to set the savingsBalance.  Call this method setSavingsBalance.  The method should take a double argument and return void. 

Create an accessor method to retrieve the savingsBalance.  Call this method getSavingsBalance.  The method should take no arguments and return a double (i.e. the savingsBalance).

Include two constructors.  The first takes no arguments and sets the savingsBalance variables to zero and sets the savingsAccountName to an empty string by calling the second (i.e. two argument) constructor with 0 and an empty string.  The second constructor takes one double argument (the savingsBalance) and one string argument (the savingsAccountName), and sets the savingsBalance by calling the setSavingsBalance method and setsavingsAccountName method, respectively.

Create CalculateMonthlyInterest method with formula.  The method should return void.

Create setAnnualInterestRate method to take a double argument representing the annualInterestRate and return void.

Create PrintSavingsAccount method to display the savingsBalance, savingsAccountName, and annualInterestRate for an object.  Use the output shown below as a guideline for the display.

Create a separate class called SavingsAccountTest, which contains the Main() method.

In the Main() method, create three savingsAccount objects called saver1,  saver2, and saver3.  Initialize saver1 and saver2 with the balances listed above and the names “Saver_One” and “Saver_Two”, respectively.  Do not initialize saver3 with anything.  Instead, create the object by invoking its zero-argument constructor, which will initialize its balance to 0 and its name to an empty string.

In the Main() method, call setAnnualInterestRate to set the interest rate to 4%.

Next, call the setSavingsAccountName for saver3 to set its name to “Saver_Three”.  Then, call the setSavingsAccountBalance for saver3 to set its balance to $50,000.

Print the results by calling PrintSavingsAccount for each object.

Next, call the CalculateAnnualInterestRate method for all three saver objects.

Print the results again by calling PrintSavingsAccount for each object.

Next, change the annualInterestRate to 5% by calling the setAnnualInterestRate method.

Print the results again by calling PrintSavingsAccount for each object.

Solution for BMIS209 Assignment 4

Solution contain Visual Studio C# project (you can open and run this project by Visual Studio 2010 or newest version)

It is 100% correct.

If you have more questions, please contact me via email support@extutorials.com

I will help you any time

Thanks

Attached Files

Move over [ preview ] file name to preview content in it!

Write a review

Your Name:


Your Review: Note: HTML is not translated!

Rating: Bad           Good

Enter the code in the box below:



PURCHASE SAVE
2 Tutorials 10%
3 Tutorials 13%
4 Tutorials 16%
5 Tutorials 19%
6 Tutorials 22%
7 Tutorials 25%
8 Tutorials 28%
9 Tutorials 31%
10 Tutorials 34%
add url more

9MZQASHWN73B