Friday, December 27, 2019

15.Create a sequential data file “SALARY.DAT” to store name , address, and salary of the workers in a bank : -

Ans:

CLS
OPEN “SALARY.DAT” FOR OUTPUT AS #1
DO
INPUT “Enter worker name”; CN$
INPUT “Enter address”; A$
INPUT “Enter salary ”;S
WRITE #1, CN$, A$, S
INPUT “Do you want to add more records (Y/N)”; Ans$
LOOP WHILE Ans= “Y”
CLOSE #1
END



For Suggestion / Help / Feedback :-
Kindly Contact :
E-mail : Shahadit65@gmail.com
Phone No. : 9865416703


Thank - You 


             

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...