File Handlings Programs (Qbasic)

  1. 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
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. To create a serial file having variable name, department and telephone number. (Qbasic Code)
  8. 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) 
  9. 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) 
  10. 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.
  11. To search the employee's name from the sequential data file "emp.dat" having name as Name, Post, Dept and salary.
  12. 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.
  13. To search the employee's name from the sequential data file "emp.dat" having fields as Name, Post, Dept and salary.
  14. 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.
  15. WAP to create a data file “PERSON.DAT” to store person’s Name, Address, and Telephone number of N different students.
  16. 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)
  17. 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.
  18. 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.
  19. WAP to create a data file named “store.dat” which stores the following data:  Roll number, name and class of N number of students.
  20. WAP to create  a data file "MARK.DAT" and store a name, address and marks in any three subjects for five students.
  21. 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.
  22. 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.
  23. WAP  to a delete record from a file "std.dat" which contains fields as roll number, name and telephone number of a student.
  24. 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.
  25. 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.
  26. Make a program to count and display all the records existing in a sequential data file which name is input by the user.
  27. 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.
  28. 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.
  29. WAP to create a sequential data file “EMPLOYEE.DAT” to store employees’ name, Address, Age, Gender and Salary.
  30. 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.
  31. 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). 
  32. 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.
  33. 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.
  34. 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.
  35. 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.
  36. 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.
  37. 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”.
  38. WAP to add more records in the data file “BOOK.DAT” with the fields of information such as Book title, Author and Price.
  39. 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.
  40. 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.
  41. 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.
Back To Top

facebook main

counter

Powered by Blogger.