Find Jobs
Hire Freelancers

Develop a reusable collection that could be used as the foundation for a class representing a bank account

$10-30 AUD

Completed
Posted over 8 years ago

$10-30 AUD

Paid on delivery
This task requires you to develop a reusable collection that could be used as the foundation for a class representing a bank account. Along with this task you have been provided with several C# code files relevant to this task:  [login to view URL] – this contains the interface that elements stored in the bank account must implement;  [login to view URL] – this contains a simple class representing a deposit transaction;  [login to view URL] – this contains a simple class representing a withdrawal transaction; and  [login to view URL] – this contains a Main() method that will help you validate the collection that you are required to implement below. The reusable collection you are required to implement must satisfy the following requirements: 1. The class must be named Account<>, must be in the SIT221_Collections namespace, must apply generics, and must apply the condition that any data types to be stored in the collection implement the ITransaction interface (hint: this refers to the ‘where’ keyword in the class declaration); 2. The class must implement the IList<> interface, including appropriate exceptions; 3. The class must provide a decimal property ‘Balance’ which calculates and returns the current balance of the class; 4. All data must be stored using arrays, however no array should be exist unless there is data stored in the collection; 5. When required, the array must be allocated with an initial size of two elements and must be increased by two elements each time additional capacity is required; 6. All data must be stored in order (can be determined using the CompareTo() method implemented by the Deposit and Withdrawal classes); 7. The IList<>.Insert() method must perform no functionality and throw an exception of type NotSupportException; 8. At no time can the account’s Balance value be negative (ignore the order of transactions for this requirement) – if any change to the collection would result in a negative balance, an exception of type InvalidOperationException should be thrown.
Project ID: 8329856

About the project

4 proposals
Remote project
Active 9 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
HI Contact me for an efficient, perfect, well documented development of your project according to 100% accuracy and requirements, with dedicated support. Thanks Farah Saif
$25 AUD in 1 day
5.0 (14 reviews)
3.7
3.7
4 freelancers are bidding on average $34 AUD for this job
User Avatar
Dear I have done a lot of work in it and also currently working on these type of projects. I will deliver you best quality work on time.
$30 AUD in 1 day
5.0 (1 review)
0.0
0.0
User Avatar
Hello, Before you select a part time developer from here, take a look at fugacode.com. If you like what you see, contact them. That's all. "Why hire freelancers? when you can hire professional developers for the same cost" - Top Ranked Freelancing developers are with fugacode now. But not as individual developers. But as an award winning team in one building. Just for you! Regards.
$25 AUD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of AUSTRALIA
Melbourne, Australia
5.0
5
Payment method verified
Member since Oct 2, 2014

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.