Skip to content

TIFC2DEV-JAVA-MJ3 LAB - BankAccount - Github Classroom Assignment

Notifications You must be signed in to change notification settings

generation-org/TIFC2DEV-JAVA-MJ3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

BankAccount Beginner Lab

Overview

Implement the BankAccount class to pass the beginner tasks.

Core Tasks

  1. Implement deposit(double amount) with guard clauses for invalid deposits (zero/negative).
  2. Implement withdraw(double amount) with guard clauses (no overdraft, no negative withdrawal).
  3. Implement getBalance() to return the current balance.
  4. Test edge cases:
    • Deposit 0
    • Withdraw more than balance
    • Negative deposit/withdrawal

How to Run

Compile and run tests with Gradle:

./gradlew test    # macOS/Linux
gradlew.bat test  # Windows

About

TIFC2DEV-JAVA-MJ3 LAB - BankAccount - Github Classroom Assignment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages