Create a class named SavingsAccount. Provide fields for the customer (use the Person class from Exercise), account number, balance, and interest rate. Provide two constructors. One requires a customer and sets each numeric field to 0; the other requires a customer and an account number and sets the account’s opening balance to $100 at 3% interest. Include a function that displays an account’s data fields. Write a main()function that instantiates one SavingsAccount object of each type and displays their values. Save the file as SavingsAccount.cpp.
Exercise
Create a Person class that includes fields for last name, first name, and zip code. Include a default constructor that initializes last name, first name, and zip code to “X” if no arguments are supplied. Also include a display function. Write a main()function that instantiates and displays two Person objects: one that uses the default values, and one for which you supply your own values. Save the file as Person.cpp. You will use the Person class in other exercises.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.