Using the Attached Files:
write a PostOffice class that will manage a single Post Office. A Post Office checks PostalBox near it regularly and collects MailItems from there. PostOffice is identified by its name, address, and zip code. Post office filters mail items and sends mail items to other post offices identified by the zip codes. Post office can accept mail items directly from people and not through a postal box. Post office will deliver mail to intended recipients.
Your job is to write a class PostOffice that will collect mail from postal box. PostalBox is a class that will be provided for you. It is a class that contains a growing array of pointers to mail items that will be read from a file. You will have a function in postal box getMail that will return a pointer to an array of pointers of mail items. Your class must provide functions to:
1. collectMail--function will collect mail from PostalBox
2. receiveMail--function will receive a single mail item from a user
3. receiveMailFromOffice--function will receive mails send by other Postal Offices.
4. filterMail--function will filter all the mail items and send out mail items to other post offices identified by their zip codes
5. deliverMail--function will deliver mail to home addresses.
6. Any other necessary functions that are needed for a class with dynamic allocation.
I advise you to store a growing array of pointers to all mail items as well as growing array of pointers to mail items intended for a specific Postal Office in your class. You will have to provide grow function as well to grow arrays.
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
using Dev-C++ and SSH Secure Shell
Dev-C++ Version 4.9.8.0
SSH Secure Shell client version 3.29