Skip to content

Simple and conceptual bank implementation from CSED332, fall 2018, at POSTECH

Notifications You must be signed in to change notification settings

wldh-ug/CSED332_Bank

Repository files navigation

Homework 1

Jio Gim, Creative IT Engineering, POSTECH
Student ID: 20160087, Povis ID: iknowme

Answers

Answers to questions in homework1.pdf.

  1. I can auto-format code in Eclipse by pressing buttons below.
    ⌘(Ctrl) + ⇧(Shift) + F

  2. In Eclipse, I can quickly comment/uncomment a chunk of code using shortcuts after select code. Without selecting code, only single line where the caret positions will be comment/uncommented.

    • Line Comment (//): ⌘(Ctrl) + /
    • Block Comment (/**/): ⌘(Ctrl) + ⇧(Shift) + /
  3. ⌘(Ctrl) + ⇧(Shift) + T shortcut is Open Type command. This opens reference codes about specified types.

Specificites

Strange Limitation: "The balance of HighInterest account should always bigger or equal to 1000."

The comment introduction on HighInterest.java says "The balance of HighInterest account should always bigger or equal to 1000." So how about when create high interest account with initial balance lower than 1000? Unfortunately, in test main code, there was no any exception handler on createAccount function. So, in my code, instead of throwing exception, createAccount will return null when if the initial value is lower than 1000 in creating high interest account.

Floating Point Problem

The test code from skeleton code says that the result of 100000. * Math.pow(1.01, 20) is 122019.00399479672. But in my execution, the result was 122019.0039947967. I still does not know how that 2 comes, but TA said small difference under 0.01 will be ignored, so I didn't modified my algorithm anymore.

About

Simple and conceptual bank implementation from CSED332, fall 2018, at POSTECH

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages