create account

6.13 (Part 2) Deposit and Withdrawal Files - Java by kakradetome

View this thread on: hive.blogpeakd.comecency.com
· @kakradetome ·
$7.44
6.13 (Part 2) Deposit and Withdrawal Files - Java
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! :)
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorkakradetome
permlink6-13-part-2-deposit-and-withdrawal-files-java
categoryprogramming
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"}
created2017-01-30 04:13:30
last_update2017-01-30 04:13:30
depth0
children0
last_payout2017-03-02 09:54:21
cashout_time1969-12-31 23:59:59
total_payout_value5.608 HBD
curator_payout_value1.833 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,455
author_reputation31,794,084,266,065
root_title"6.13 (Part 2) Deposit and Withdrawal Files - Java"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id2,377,224
net_rshares28,848,516,565,795
author_curate_reward""
vote details (35)