Bank Account

Bank Account

Medium

Instructions

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.

This exercise requires you to handle data related to currency and money. A normal approuch is to use the [Decimal](https://docs.microsoft.com/en-us/dotnet/api/system.decimal Note though that you then only store the numeric value of a currency.

Edit via GitHub The link opens in a new window or tab
Visual Basic Exercism

Ready to start Bank Account?

Sign up to Exercism to learn and master Visual Basic with 101 exercises, and real human mentoring, all for free.