By Aaditya Shah
[Subscribe and Comment for more updates]
Saturday, December 28, 2019
3. A sequential data file named “Nabil.txt” contains record of clients of a bank including depositor’s name, deposited amount, time and rate of interest. WAP to display detail of all depositors including simple interest.
Ans:
CLS
OPEN “NABIL.TXT” FOR INPUT AS #1
WHILE NOT EOF(1)
INPUT #1, N$, A, T, R
I=(A*T*R)/100
PRINT N$, A, T, R, I
WEND
CLOSE #1
END
No comments:
Post a Comment