PFP191_-_PE_-_SU_2025_-_Block_1_3992.webp
minhdz1

PFP191_-_PE_-_SU_2025_-_Block_1_3992.webp

  • Media owner minhdz1
  • Ngày thêm
✓ 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
Chưa có bình luận nào.

Thông tin

Category
PFP191
Thêm bởi
minhdz1
Ngày thêm
Lượt xem
2,267
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom