-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathComputingInterest.ctxt
6 lines (6 loc) · 1.59 KB
/
ComputingInterest.ctxt
1
2
3
4
5
6
#BlueJ class context
comment0.target=ComputingInterest
comment0.text=\r\n\ Name\:\ Bill\ Mao\r\n\ Date\:\ 9/22/17\r\n\ School\:\ East\ Chapel\ Hill\ High\ School\r\n\ Program\:\ Program\ 58h\ (computing\ interest)\r\n\ Description\:\ This\ program\ is\ designed\ to\ calculate\ the\ amount\ of\ interest\ gained\ in\ a\ bank\ account.\r\n\ It\ first\ ask\ the\ user\ for\ four\ details\ related\ to\ compound\ interest\:..\r\n\ the\ starting\ amount,\ or\ principal,\ the\ interest\ rate,\ the\ amount\ of\ times\ the\ interest\ is\ compounded\ per\ year,\ and\ the\ number\ of\ days\ the\ money\ is\ in\ the\ account\r\n\ It\ then\ takes\ these\ values\ and\ uses\ the\ compound\ interest\ formula\ to\ calculate\ the\ money\ present\ in\ the\ account\ after\ interest\r\n\ The\ money\ after\ interest\ is\ then\ subtracted\ from\ the\ starting\ value\ to\ find\ the\ amount\ of\ money\ gained.\r\n\ The\ money\ after\ interest\ and\ the\ money\ gained\ are\ then\ \ printed\ for\ the\ user\ to\ see.\r\n\ Difficulties\:\ When\ I\ created\ this\ program,\ I\ forgot\ to\ add\ 1\ to\ the\ interest\ rate\ divided\ by\ number\ of\ times\ compounded\ per\ year\r\n\ I\ also\ got\ the\ final\ amount\ of\ money\ and\ the\ money\ gained\ mixed\ up.\r\n\ What\ I\ Learned\:\ In\ this\ exercise,\ I\ got\ some\ more\ practice\ with\ casting\ variables\ and\ getting\ user\ input\ with\ the\ scanner\ class.\r\n\ I\ also\ learned\ how\ to\ better\ format\ mathematical\ operations\ in\ Java\ by\ doing\ the\ most\ nested\ calculations\ first.\r\n
comment1.params=args
comment1.target=void\ main(java.lang.String[])
numComments=2