Back to problems

Bank Account Simulation Class With Self-Written Tests at 90% Coverage

Object-Oriented Programming · Shopify · Medium

You are working live in a shared-screen session with a small codebase already checked out locally. Your task is to implement an in-memory banking component, write automated tests for it that reach at least 90% coverage as measured by the repository's configured tool, and then extend the implementation when asked. Implement a class named Bank with the following behavior. All monetary values are integer minor units, such as cents, and floating-point values must not be used.…

Checking your access…