✓ Kizspy.me 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 (Included in the given and the file name is
entered by the user). The log format is displayed as
follows:
D 200, D 300, D 1000, W 400, W 600, W 200
(D is deposit, W is withdrawal).
1. Read the file and print the content of the file. (1
points)
1
The output should be:
Your selection (1 -> 2):
data.txt
OUTPUT
D 200, D 300, D 1000, W 400, W 600, W 200
2. Compute and print the result. (2 point)
The output should be:
Zoom
- FUO
+100%
Close