#WRITE A PROGRAM TO OPEN A DATA FILE “STUDENT.DAT” THAT CONTAINS NAME, ADDRESS, TELEPHONE NUMBER AND PATENTS NAME OF SOME STUDENTS. NOE, DISPLAY ALL THE RECORDS WHOSE ADDRESS IS “LALITPUR”. CLS OPEN “STUDENT.DAT” FOR INPUT AS #1 WHILE NOT EOF(1) INPUT #1, N$,A$,T#,P$ IF UCASE$(A$)=”LALITPUR” THEN PRINT N$,A$,T#,P$ END IF WEND CLOSE #1 END #A SEQUENTIAL DATA FILE “STD.REC” CONTAINS RECORDS OF STUDENTS NAME, ROLL NUMBER, SECTION AND ADDRESS OF 10 STUDENTS. WRITE A PROGRAM TO DISPLAY THE LAST FIVE RECORDS. CLS OPEN “STD.REC” FOR INPUT AS #1 FOR I=1 TO 10 INPUT #1, N$,R,S$,AD$ IF I>S THEN PRINT N$,R,S$,AD$ END IF NEXT I CLOSE #1 END #A SEQUENTIAL DATA FILE “SALARY.DAT” CONTAINS INFORMATION AS EMPLOYEE CODE, EMPLOYEE NAME, POST AND BASIC SALARY. WRITE A PROGRAM TO DISPLAY THOSE RECORDS WHOSE BASIC SALARY IS BETWEEN 10000 TO 15000 AND POST IS “OFFICER”. CLS OPEN “SALARY.DAT” FOR INPUT AS #1 WHILE NOT EOF(1) INPUT #1,EC,EN$,P$,S IF S>=10000 AND S<=150