OPEN "EXAM.DAT" FOR INPUT AS #1
CLS
FOR I = 1 TO 1000
INPUT #1, SN$, CL, M, S, C
T = M + S + C
AV = T / 3
IF AV > 60 THEN PRINT SN$, CL, M, S, C, T, AV
PRINT SN$, CL, M, S, C, T, AV
NEXT I
CLOSE #1
END
Questions
Quick Access
Exam Capsule
MCQ
Articles
Institutes
Notices
Top Topics
A data file "EXAM.DAT" has 1000 records with student's names, classes, and marks in 3 subjects. Calculate total marks and average marks and print all those records where average > 60.
OPEN "EXAM.DAT" FOR INPUT AS #1
CLS
FOR I = 1 TO 1000
INPUT #1, SN$, CL, M, S, C
T = M + S + C
AV = T / 3
IF AV > 60 THEN PRINT SN$, CL, M, S, C, T, AV
PRINT SN$, CL, M, S, C, T, AV
NEXT I
CLOSE #1
END
Who is a system analyst? What are the characteristics of system analysts? 1
What are the different stages of the system development life cycle (SDLC) 1
What do you understand about AI? What are the negative and positive aspects of AI in society? 1
How does an AI application work? Can a computer really think with the aid of AI? 1
PathshalaNepal.com is a Registered Company of E. Pathshala Pvt Ltd Nepal. Registration number : 289280
© 2020. All right Reversed.E. Pathshala Pvt Ltd