Connect Me

twitterfacebookgoogle plus email

  Instagram View Biwas Bhattarai's profile on LinkedIn

Create a data file "Marks.dat" and store the Marks of 5 students in 3 differents subjects.


Solution:

REM PROGRAM ASK NAME OF 5 STUDENTS AND MARKS OF 3 SUBJECTS

CLS

OPEN "MARKS.DAT" FOR OUTPUT AS #1

FOR I = 1 TO 5

INPUT "ENTER YOUR NAME"; N$


INPUT "ENTER MARKS IN ENGLISH"; ENG

INPUT "ENTER MARKS IN COMPUTER"; COMP

INPUT "ENTER MARKS IN SCIENCE"; SCI

WRITE #1, N$, ENG, COMP, SCI

NEXT I

CLOSE #1

END
Ą
https://www.flickr.com/photos/spklg/15211044551/