Question: C# Create a new Console Application named AccountInheritance. In the application, we will be simulating monthly interest on different account types. Write an inheritance hierarchy
C# Create a new Console Application named AccountInheritance.
In the application, we will be simulating monthly interest on different account types.
Write an inheritance hierarchy for the following classes:
The Account class should have an Amount property, CalculateInterest method, and Balance method.
The interest rates are the following:
Checking: APYSavings: APYPremium Savings: APYCredit: APY
Note: Use APY to calculate the monthly rate
Create an array of Accounts and add an instance of each account with the exception of Banking.
Loop through array and perform the following:
Display the type of account.Set each account to a random Amount between $ $Display the amount for the account.Calculate the monthly interest for the account and add it to the balance.Display the amount for the account.
Add your name and the date as comments at the top of the code file.
In the last line of program's main method, add Console.ReadKey; to stop the programming from ending automatically.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
