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.
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
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.