153.A sequential
data file “Address.inf” contains serial no, name, address, telephone and
email_id.WAP to record as many records as the user wants. The serial number
should be generated automatically like 5001,5003,5005.
OPEN
" Address.inf " FOR OUTPUT AS #1
DO
CLS
C
= 5001
INPUT
“ENTER NAME”; N$
INPUT
“ENTER ADDRESS”; A$
INPUT
“ENTER TELEPHONE”; T#
INPUT
“ENTER EMAIL”; E$
WRITE #1, C, N$, A$, T$, E$
C
= C + 2
INPUT
“DO YOU WANT TO CONTINUE (Y / N)”; CH$
LOOP
WHILE UCASE$(CH$) = “Y”
CLOSE
#1
END
No comments:
Post a Comment