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 6 - Week 6 - Module 6 - Develop a polymorphic banking application using the Account hierarchy you created in Assignment #5
    BMIS209 BMIS 209 BMIS/209 - Assignment 6 - Week 6 - Module 6 - Develop a polymorphic banking application using the Account hierarchy you created in Assignment #5

BMIS209 BMIS 209 BMIS/209 - Assignment 6 - Week 6 - Module 6 - Develop a polymorphic banking application using the Account hierarchy you created in Assignment #5

$19.99

BMIS409

PROGRAMMING ASSIGNMENT 6 INSTRUCTIONS

Develop a polymorphic banking application using the Account hierarchy you created in Assignment #5. Create the following two SavingsAccount objects and two CheckingAccount objects and store them in an array called “arrays” of Account references to the objects:
Account Name Account Number Initial Balance Fee Charged Interest Rate

[your name]-Savings-1 1 1,000 4%
[your name]-Savings-2 2 2,000 5%
[your name]-Checking-1 3 3,000 3.00
[your name]- Checking -2 4 4,000 4.00

Using a “foreach” loop, iterate over each account in the array. For each Account in the array, first print the account. Next, allow the user to specify an amount of money to withdraw from the Account using method Debit and an amount of money to deposit into the Account using method Credit. Specifically, for each account, prompt the user to enter an amount to deposit in the account and call the Credit method. Print the object.

Next, prompt the user to enter an amount to withdraw and call the Debit method. Print the object. After the user has made a deposit and a withdrawal from an account, calculate interest if the account is a SavingsAccount and print the object.

To perform this step, you must first determine the object’s type. If the Account is a SavingsAccount, calculate the amount of interest owed to the Account using method CalculateInterest and print the account a final time. If the account is a CheckingAccount, you do not need to CalculateInterest nor print the account a final time.

Hint: To determine if an account is a savings or checking account, use the .getType method which returns a string representing the Name or FullName property. Then use the “.Equals” method to determine if the returned string is equal to the name of the class. For example, acct.getType().Name returns the string “SavingsAccount” or “CheckingAccount”. Once you have determined that an account is a SavingsAccount object, you must “cast” the account object into a SavingsAccount object in order to access its CalculateInterest method. I like to perform this in two steps: declare a different variable to hold the reference to the object that has been cast from an Account object into a SavingsAccount object. Then, using this new variable, invoke its CalculateInterest method. For example, at the beginning of the Main() method, I declare a variable of type SavingsAccount as follows:

SavingsAccount temp_account;

In my foreach loop, I have a variable called “acct” that is defined as an Account object. To downcast this Account object into a SavingsAccount object, I use the syntax:

temp_account = (SavingsAccount) acct;

At this point, because temp_account is a SavingsAccount object, I can invoke its

CalculateInterest method:

temp_account.CalculateInterest();

Solution for BMIS209 Assignment 6

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