Loan Calculator
Builds formatted loan summaries with borrower information, sensible defaults for missing values, and a helper that calculates loan end dates — plus a small test harness for multiple scenarios.
Sec 01
Overview
The calculator assembles a formatted loan summary from borrower information, filling in defaults where values are missing so the program never fails on incomplete input.
A date helper derives the loan end date from the start date and term, and a small test harness runs several borrower scenarios to confirm the formatting and math hold up.
Debrief
What I Took Away
- ▸Defensive defaults for missing or partial input.
- ▸Date arithmetic and formatting in Java.
- ▸Building repeatable scenario tests instead of one-off manual checks.
- ▸Producing output that reads cleanly to a non-technical user.
LanguageJava
TypeConsole app
FocusDefaults + dates
CourseJava Programming