Friday, December 27, 2019

14.A sequential data file “SALARY.DAT” contains the information such as Name of Employee, Post, and Basic-Salary. Write a program to display those records whose Basic-salary is in between 15000 to 20000


Ans :

CLS
OPEN “SALARY.DAT” FOR INPUT AS #1
WHILE NOT EOF(1)
INPUT #1, N$, P$, S
IF B$>=10000 AND B$<=15000 ” THEN
PRINT N$, P$, S
END IF
WEND
CLOSE #1
END

No comments:

Post a Comment

File Handling

Introduction:- Data are used in all the programs for retrieving information. In QBASIC you can store data in a separate file called a da...