File Handlings Programs (Qbasic)
- A program to input the name, class and
roll no, marks of english and science of a student and store in a
sequential file "std.dat". (Qbasic Code)
- A sequential data file "std.dat"
contains name, class and roll no., marks of english and science of a
student. Make a program to display the record. (Qbasic Code)
- A sequential data file "std.dat"
contains name, class and roll no., marks of english and science of a
student. Make a program to add one more records in the file. (Qbasic Code)
- A sequential data file "std.dat"
contains name, class and roll no., marks of english and science of a
student. Make a program to display all records in the file. (Qbasic Code)
- A sequential data file "std.dat"
contains name, class and roll no., marks of english and science of a
student. Make a program to display certain records in the file according
to the roll no. supplied. (Qbasic Code)
- A sequential data file "std.dat"
contains name, class and roll no., marks of english and science of a
student. Make a program to update marks in english and science.
(assuming only one record) (Qbasic Code)
- To create a serial file having variable name, department and telephone number. (Qbasic Code)
- Write a program to create a data file "STD.DAT" which stores Roll
number, Name, Class and age of student. Age of students must be from 15
to 19. (Qbasic Code)
- Write a program to create a data file "MARK.DAT" and stores name,
address and marks in any three subjects for five students. (Qbasic Code)
- A sequential data file "record.dat"
contains certain number of records having fields name as Name, DOB and
Address. Make a program to display the records whose date of birth is
the current month.
- To search the employee's name from the sequential data file "emp.dat" having name as Name, Post, Dept and salary.
- A sequential data file "record.dat"
contains certain number of records having fields name as Name, DOB and
Address. Make a program to display the records whose date of birth is
the current month.
- To search the employee's name from the sequential data file "emp.dat" having fields as Name, Post, Dept and salary.
- WAP to create a sequential data file
“std.dat” to store Name and Mark obtained in English, Math and Science
subjects for a few students.
- WAP to create a data file “PERSON.DAT” to store person’s Name, Address, and Telephone number of N different students.
- WAP to create a serial file having
variable length records of name, department and mobile number. mobile
number should be in between 1000000000 to 9999999999. (Qbasic Code)
- WAP to create a data file STD.DAT which
stores Roll number,Name,Class and age of 10 different students. Age of
students must be in between 15 to 19.
- WAP to create a data file named
“store.dat” which stores the following data: Serial number, Book name
and Author name. Add the data as user’s choice.
- WAP to create a data file named
“store.dat” which stores the following data: Roll number, name and
class of N number of students.
- WAP to create a data file "MARK.DAT" and store a name, address and marks in any three subjects for five students.
- A school administrator has the
following data, Staff name, department name and salary in a data file
named “record.dat”. WAP to display all the data of school staff that
belongs to computer department.
- WAP to create a data file “exam.dat”
and store name, marks obtained in English, math, science and computer of
students. The program terminates on user’s choice.
- WAP to a delete record from a file "std.dat" which contains fields as roll number, name and telephone number of a student.
- WAP to search and display only those
records whose percentage is more than 60% from the data file
“RESULT.DAT” which contains student’s Symbol number, Data of birth,
Total Marks, Percentage and Division.
- A data file “EXAM.DAT” has 100 records
with student’s name, class and marks in english, math and science
subjects. Print all the records where marks in each subject is greater
that 45.
- Make a program to count and display all the records existing in a sequential data file which name is input by the user.
- A data file "marks.dat" contains the
names of student and mark of three subjects for N number of students.
WAP to display the data for only those student whose total mark is
greater than 100 but less than 150.
- A sequential data file called
“Marks.dat” contains Roll number,Name, English, Nepali and maths fields.
WAP to display all the contents of the data file.
- WAP to create a sequential data file “EMPLOYEE.DAT” to store employees’ name, Address, Age, Gender and Salary.
- A data file “LIB.TXT” consists of
Book’s name, Author’s name and price of books. WAP to count and display
the total number of records present in the file.
- A sequential data file “EMP.DAT”
contains name, post and salary fields of information about employees.
WAP to display all the information of employees along with tax amount
also (tax is 15% of salary).
- WAP to create a data file “SALES.DAT”
and store Item code, Item name, Quantity and Rate per quantity. The
program should run as per user choice.
- A data file “SALES.DAT” consists Item
code, Item name,Quantity and Rate per item of different brands. WAP
that allows us to read the information from the file and display the
above mentioned along with the total amount.
- A data file “SALES.DAT” consists Item
code, Item name, Quantity and Rate per item of different brands. WAP
that allows user to read the information from the file and display the
total number of existing records.
- WAP to create a data file “SALES.DAT”
to store item code, item name, Qty and rate per item for 5 items. Also
WAP that allows user to read the information from the file and display
total number of existing records.
- WAP to open a data file “STAFF.DAT” in
output mode and store information of employees. Data file should store
information such as employee name, post, department and salary of five
different persons.
- WAP to read the information from the
data file “STAFF.DAT” which consists many records with many fields name
such as name, post, department and salary and display the records
having salary greater or equal to 12000 or having post “MANAGER”.
- WAP to add more records in the data file “BOOK.DAT” with the fields of information such as Book title, Author and Price.
- WAP to read the information from the
data file “STAFF.TXT” which consists of many records with many fields
name such as name, post, department and salary. Also increase the salary
by 10% to all employees.
- WAP to read the information from the
data file “STAFF.DAT” and find the greatest salary which consists of
many records with many fields name such as name, post, department and
salary.
- WAP to add new data to the already
created data file name “STAFF.DAT” which has fields name, post,
department and salary for a few persons.