HELP PLEASE! THANKS A LOT

Create a class Account with the following data members:
· number - The account number.

The valid values are any string that starts with 3 characters and ends with 4 numbers. Ex. SAV4567, CHK5892, etc…(Defaults to Empty String)
· type - The account’s Type.

Valid values are ‘S’ for Saving accounts, ‘C’ for Checking accounts and “L” for Loans accounts. (Defaults to “S”)
· owner - The name of the account’s owner . Ex. “John Smith”

string of 30 characters. (Defaults to Empty String)
· balance - The amount of money in USD currently existing in the account.

A decimal number representing the balance. The balance should be a positive number.(Defaults to 0)
· interestRate - The annual interest rate. A decimal number between 0 and 1.

(Defaults to 0.05)
And the following member functions:
· A constructor with default arguments.
· All “set” functions with the integrity checks.
· All “get” functions.
· A member function that calculates and returns the monthly interest.
· A print function to print all attributes of an account.

Write a program to test your class by:
· Create a list of 3 accounts (array of 3 objects)
· Fill the objects with your favorite accounts.
· Using a pointer, print on the screen the created accounts.
· Test your member functions using objects of the created array.
Please note, that this is not a homework site.
We won't do your homework for you.
The purpose of homework is that you learn by doing.
However we are always willing to help solve problems you encountered, correct mistakes you made in your code and answer your questions.


We didn't see your attempts to solve this problem yourself and so we cannot correct mistakes you didn't made and answer questions you didn't ask. To get help you should do something yourself and get real problems with something. If your problem is "I don't understand a thing", then you should go back to basics and study again.
ba3ed na2esne enta
Kol 5ara ja ibnel kalb
masmis
Topic archived. No new replies allowed.