I need help with this program using MVS C++ You are to create the following 3 cl
ID: 3560084 • Letter: I
Question
I need help with this program using MVS C++
You are to create the following 3 classes:
1. Account
2. Savings
3. Checkings
Both Savings and Checkings inherit the Account class.
The Account class has the following variables:
1. string AccountType
2. string Name
3. int Money
4. int Accountnumber
5. int Pin
The Savings has the following variables:
1. static int rate //should be set to 2
2. int totalinterest
The Checkings as the following variables:
1. int debitnumber
2. int securitycode
Your program should start off by declaring an array of 5 Checkings and 5 Savings. The number of actual accounts should be kept as we used an array of size 5, but not all 5 will be filled up. In the end after reading in the file, there will be only 2 Savings and 3 Checkings, which is important to know because your loops will only go that amount of times.There is a file called "Accounts.txt" which has all the information. be aware that checkings accounts have more variables than savings accounts because rate is static. Be sure to read in the account type and make the correct class to place it in.Be able to sort the users based on name, money, or account number.Create a nice function to display all the users data neatly on the screen so when we sort we can view everything nicely.Be able to do searching, which is basically going to search based on two variables entered... name and pin.
Do notice that only one person has BOTH a checking and savings account, so for that person, ask which account to go into based on account type.
include inheritance, static variables, infile, arrays, condition statements and other material from 1336
account txt.
Savings Amanda 500 1000 1234 2
Checkings Amanda 2000 1001 1234 11111 142
Checkings Richard 10000 1002 1245 33356 841
Savings Tyler 247 1003 3041 10
Checkings Zach 3000 1004 6969 55721 216