164.A
sequential data file “SALARY.DAT” contains the information, Employee-Code,
Employee-Name, Post, Basic-Salary. Write a program to display those records
whose Basic-salary is between 10000 to 15000 and Post is ‘OFFICER’.
OPEN
"SALARY.DAT" FOR INPUT AS #1
CLS
WHILE
NOT EOF (1)
INPUT #1, E,, N$, P$, S
IF UCASE$(P$) = “OFFICER” AND S >= 10000
AND S>= 15000 THEN PRINT A$, B$, C, D
WEND
CLOSE
#1
END
No comments:
Post a Comment