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
2. Compute and print the result. (2 point)
The output should be:
Your selection (1 -> 2):
2
data.txt
OUTPUT
-500
Zoom
+ 95%
Close