3
OUTPUT
18
Question 2 (3 points)
Write a program that calculates the actual amount of a bank account based on the transaction log entered from a file. The log format is displayed as follows:
D 200, D 300, W 400, W 600
(D is deposit, W is withdrawal).
1. Read the file and print the content of the file. (1points)
The output should be:
Your selection (1 -> 2):
1
data.txt
OUTPUT
D 200. D 300. W 400. W 600
+ 95%
Zoom
Close