1. Write a program to create a sequential data file named "record.
txt" and store Roll
number, Name, Address and Class of a student.
2. Write a program to create a sequential data file named "record.txt" and store Roll
number, Name, Address and Class of few students.
3. Write a program to add few more record in a data file named "record.txt" which contains
Roll number, Name, Address and Class of few students.
4. Write a program to display all the records from data file named "record.txt" which
contains Roll number, Name, Address and Class of several students.
5. Write a program to display only those records whose name starts with "K" from data file
named "record.txt" which contains Roll number, Name, Address and Class of several
students.
6. Write a program to display only those records who lives in "POKHARA" from data file
named "record.txt" which contains Roll number, Name, Address and Class of several
students.
7. Write a program to count and display only those records who reads in class 10 from
data file named "record.txt" which contains Roll number, Name, Address and Class of
several students.
8. Write a program to display only those records whose roll number is in from 20 to 30
from data file named "record.txt" which contains Roll number, Name, Address and
Class of several students.
9. Write a program to count only those records who doesn't lives in "POKHARA" from
data file named "record.txt" which contains Roll number, Name, Address and Class of
several students.
10. Write a program to delete all those records whose address is
"KATHMANDU"from data file named "record.txt" which contains Roll number, Name,
Address and Class of several students.
Q) A sequential data file named "result.doc" contains Roll number, Name, Class and Marks
obtained in 5 different subject i.e Maths, Science, English, Nepali, Computer. Let us consider
Pass mark to be 40 and Full mark to be 100 then answer all the following questions.
Write a program to display all the name of students who failed in any one or more of the
subject.
Write a program to count total number of students who passed in all the subject.
Write a program to calculate and display percentage of all the students along with the
roll number and name.
Write a program to display name of the students who failed only in English and Nepali.
Write a program to delete all the records of students who failed in any one or more of
the subject.