Sha256: 2eaffdda18f696010685e25acd2b95d2a4bcb2665cbdd9be8a38160a09f7316d

Contents?: true

Size: 1.66 KB

Versions: 97

Compression:

Stored size: 1.66 KB

Contents

# Bank Account

Simulate a bank account supporting opening/closing, withdrawals, and deposits
of money. Watch out for concurrent transactions!

A bank account can be accessed in multiple ways. Clients can make
deposits and withdrawals using the internet, mobile phones, etc. Shops
can charge against the account.

Create an account that can be accessed from multiple threads/processes
(terminology depends on your programming language).

It should be possible to close an account; operations against a closed
account must fail.

## Instructions

Run the test file, and fix each of the errors in turn. When you get the
first test to pass, go to the first pending or skipped test, and make
that pass as well. When all of the tests are passing, feel free to
submit.

Remember that passing code is just the first step. The goal is to work
towards a solution that is as readable and expressive as you can make
it.

Have fun!

## Hints
This exercise requires you to handle data related to currency and money. A normal approuch is to use the [Decimal](https://msdn.microsoft.com/en-US/library/system.decimal.aspx) struct to store currency values. 
Note though that you then only store the numeric value of a currency. 


### Submitting Exercises

Note that, when trying to submit an exercise, make sure the exercise file that you're submitting is in the `exercism/csharp/<exerciseName>` directory.

For example, if you're submitting `bob.cs` for the Bob exercise, the submit command would be something like `exercism submit <path_to_exercism_dir>/csharp/bob/bob.cs`.

## Submitting Incomplete Solutions
It's possible to submit an incomplete solution so you can see how others have completed the exercise.

Version data entries

97 entries across 97 versions & 1 rubygems

Version Path
trackler-2.2.1.103 tracks/csharp/exercises/bank-account/README.md
trackler-2.2.1.102 tracks/csharp/exercises/bank-account/README.md
trackler-2.2.1.101 tracks/csharp/exercises/bank-account/README.md
trackler-2.2.1.100 tracks/csharp/exercises/bank-account/README.md
trackler-2.2.1.99 tracks/csharp/exercises/bank-account/README.md
trackler-2.2.1.98 tracks/csharp/exercises/bank-account/README.md
trackler-2.2.1.97 tracks/csharp/exercises/bank-account/README.md
trackler-2.2.1.96 tracks/csharp/exercises/bank-account/README.md
trackler-2.2.1.95 tracks/csharp/exercises/bank-account/README.md
trackler-2.2.1.94 tracks/csharp/exercises/bank-account/README.md
trackler-2.2.1.93 tracks/csharp/exercises/bank-account/README.md
trackler-2.2.1.92 tracks/csharp/exercises/bank-account/README.md
trackler-2.2.1.91 tracks/csharp/exercises/bank-account/README.md
trackler-2.2.1.90 tracks/csharp/exercises/bank-account/README.md
trackler-2.2.1.89 tracks/csharp/exercises/bank-account/README.md
trackler-2.2.1.88 tracks/csharp/exercises/bank-account/README.md
trackler-2.2.1.87 tracks/csharp/exercises/bank-account/README.md
trackler-2.2.1.86 tracks/csharp/exercises/bank-account/README.md
trackler-2.2.1.85 tracks/csharp/exercises/bank-account/README.md
trackler-2.2.1.84 tracks/csharp/exercises/bank-account/README.md