https://www.youtube.com/watch?v=d1KnZS5AJlg Starting out with Java: From control structures through objects Chapter 6 Programming Challenges 13. Deposit and Withdrawal Files Use Notepad or another text editor to create a text file named Deposits.txt. The file should contain the following numbers, one per line: 100.00 124.00 78.92 37.55 Next, create a text file named Withdrawals.txt. The file should contain the following numbers, one per line: 29.88 110.00 27.52 50.00 12.90 The numbers in the Deposits.txt file are the amounts of deposits that were made to a savings account during the month, and the numbers in the Withdrawals.txt file are the amounts of withdrawals that were made during the month. Write a program that creates an instance of the SavingsAccount class that you wrote in Programming Challenge 12. The starting balance for the object is 500.00.The program should read the values from the Deposits.txt file and use the object’s method to add them to the account balance. The program should read the values from the Withdrawals.txt file and use the object’s method to subtract them from the account balance. The program should call the class method to calculate the monthly interest, and then display the ending balance and the total interest earned. Gaddis, Tony (2015-05-29). Starting Out with Java: From Control Structures through Objects (Page 401). Pearson Education. Kindle Edition. Happy Steeming Everyone! :)
author | kakradetome |
---|---|
permlink | 6-13-part-2-deposit-and-withdrawal-files-java |
category | programming |
json_metadata | {"tags":["programming","java","tony-gaddis","deposit-andwithdrawal","files"],"image":["https://img.youtube.com/vi/d1KnZS5AJlg/0.jpg"],"links":["https://www.youtube.com/watch?v=d1KnZS5AJlg"],"app":"steemit/0.1","format":"markdown"} |
created | 2017-01-30 04:13:30 |
last_update | 2017-01-30 04:13:30 |
depth | 0 |
children | 0 |
last_payout | 2017-03-02 09:54:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 5.608 HBD |
curator_payout_value | 1.833 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,455 |
author_reputation | 31,794,084,266,065 |
root_title | "6.13 (Part 2) Deposit and Withdrawal Files - Java" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 2,377,224 |
net_rshares | 28,848,516,565,795 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
michael-a | 0 | 2,471,868,142,279 | 24% | ||
michael-b | 0 | 3,383,665,438,008 | 24% | ||
val-a | 0 | 6,802,907,984,525 | 24% | ||
ned | 0 | 13,109,462,961,133 | 24% | ||
wackou | 0 | 1,492,384,401,147 | 25% | ||
wang | 0 | 908,890,322,302 | 76% | ||
brich | 0 | 4,016,443,983 | 25% | ||
the-alien | 0 | 162,817,775,291 | 24% | ||
thebatchman | 0 | 1,118,868,429 | 3% | ||
kakradetome | 0 | 10,657,762,495 | 100% | ||
anyx | 0 | 180,955,974,883 | 25% | ||
thebatchman1 | 0 | 69,193,169 | 3% | ||
pkattera | 0 | 65,736,399,093 | 25% | ||
allmonitors | 0 | 17,905,091,353 | 100% | ||
bola | 0 | 7,622,860,545 | 15% | ||
pinkisland | 0 | 36,352,988,380 | 100% | ||
toxichan | 0 | 484,402,541 | 17.5% | ||
bhavnapatel68 | 0 | 40,299,421,603 | 100% | ||
virtualgrowth | 0 | 1,590,229,203 | 5% | ||
thegame | 0 | 207,527,952 | 2.5% | ||
steembets | 0 | 210,760,691 | 2.5% | ||
cebymaster | 0 | 11,145,800,007 | 100% | ||
so-guitarist | 0 | 1,014,225,046 | 100% | ||
onemyday | 0 | 1,784,928,728 | 100% | ||
unhorsepower777 | 0 | 14,908,939,814 | 100% | ||
blhz | 0 | 1,541,323,869 | 100% | ||
revostrike | 0 | 95,357,994 | 25% | ||
carinae | 0 | 1,274,064,907 | 24% | ||
steemland.com | 0 | 210,330,231 | 2.5% | ||
francomason | 0 | 79,467,048 | 100% | ||
chiliec | 0 | 1,867,348,237 | 12.5% | ||
steemprentice | 0 | 4,528,989,746 | 7.5% | ||
vcelier | 0 | 107,118,871,673 | 25% | ||
dreemit | 0 | 3,618,057,860 | 10% | ||
benjiparler | 0 | 103,911,630 | 25% |