SLC COMPUTER SCIENCE QBASIC FILE HANDLING -G 1. Write a program to create a sequential data file "SALES.DAT" and store item code, item name, quantity and rate. The program should terminate in user choice 2. Write a program to open the same file created in SALES.DAT and display content

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

file handing qbasic questions

SLC COMPUTER SCIENCE QBASIC FILE HANDLING -G
1. Write a program to create a sequential data file "SALES.DAT" and store item code, item name, quantity and rate. The program
should terminate in user choice
2. Write a program to open the same file created in SALES.DAT and display content
3. Write a program to create a data file MYINFO.INF which stores name of person, age, e-mail address of 3 persons.
4.
Write a program to display name and e-mail address from MYINFO.INF data file where age is between 30-40
5. Write a program to create a sequential data file "Book.INF" to store following information of Books, Book No, Author, Publisher and
Price.
6. Write a program to display all those records of "Book.INF" where price is less than Rs. 350
7. Write a program to create a sequential data file (Emp.Det) to store Name, Gender, Post and Salary of employees. Program should
terminate according to the user's choice.
8. Write a program to display all data on the monitor of "Emp.Det" data file.
9.
Write a program to create a data file named "Profile.Dat" to store Name, Address, qualification, post and salary for number of
employees. Program should terminate according to the user's choice.
10. Write a program to display all records of "Info.Dat" also count and print how many persons are getting salary <=10000.
Transcribed Image Text:SLC COMPUTER SCIENCE QBASIC FILE HANDLING -G 1. Write a program to create a sequential data file "SALES.DAT" and store item code, item name, quantity and rate. The program should terminate in user choice 2. Write a program to open the same file created in SALES.DAT and display content 3. Write a program to create a data file MYINFO.INF which stores name of person, age, e-mail address of 3 persons. 4. Write a program to display name and e-mail address from MYINFO.INF data file where age is between 30-40 5. Write a program to create a sequential data file "Book.INF" to store following information of Books, Book No, Author, Publisher and Price. 6. Write a program to display all those records of "Book.INF" where price is less than Rs. 350 7. Write a program to create a sequential data file (Emp.Det) to store Name, Gender, Post and Salary of employees. Program should terminate according to the user's choice. 8. Write a program to display all data on the monitor of "Emp.Det" data file. 9. Write a program to create a data file named "Profile.Dat" to store Name, Address, qualification, post and salary for number of employees. Program should terminate according to the user's choice. 10. Write a program to display all records of "Info.Dat" also count and print how many persons are getting salary <=10000.
SLC COMPUTER SCIENCE QBASIC FILE HANDLING - H
1. Write a program to create a data file named "Emp.Dat" to store First Name, sir name, Address and Contact number, Basic Salary and
Medical Allowance.
2. Write a program to create a data file named "NewEMP.Dat" to copy all records having address "PATAN" from the above created
"Emp.Dat" data file.
3. Write a program to create a sequential data file names "ORDER.ITM" to store order date, vendor name, item code, item name and
quantity program should terminate on the user's choice.
4. Write a program to display all records of the data file named "ORDER.DAT" and also display total number of records at the bottom.
5. Write a program to create a data file named "INFO.DAt" to store Name, Address and Salary for number of employees. Program should
terminate on the user's choice.
6. A data file named “INFO.DAT" contains Name, Address and Salary for number of employees. Write a program to display records of
those employees whose salary is between 7500 to 15000 from above created data file.
7. Write a program to input a data file named "Marks.Dat" to store Name, Gender, and Marks in English, Nepali and Science. Program
should terminate by user according to his/her choice. But the program should allow entering "M" of "F" for the gender.
8. Write a program top copy all records from above data file to the new data file named "PASS.DAT" for those students whose marks in
English, Nepali and Science are >=40.
9. A data file named "INFO.DAT" contains Name, Address, Phone, E-mail for number of persons. Write a program to add more data
to the same file. Program should terminate on the user's choice.
Write a program to display records of "INFO.DAT" for those person whose ADDRESS is “Kathmandu" or "PATAN".
Transcribed Image Text:SLC COMPUTER SCIENCE QBASIC FILE HANDLING - H 1. Write a program to create a data file named "Emp.Dat" to store First Name, sir name, Address and Contact number, Basic Salary and Medical Allowance. 2. Write a program to create a data file named "NewEMP.Dat" to copy all records having address "PATAN" from the above created "Emp.Dat" data file. 3. Write a program to create a sequential data file names "ORDER.ITM" to store order date, vendor name, item code, item name and quantity program should terminate on the user's choice. 4. Write a program to display all records of the data file named "ORDER.DAT" and also display total number of records at the bottom. 5. Write a program to create a data file named "INFO.DAt" to store Name, Address and Salary for number of employees. Program should terminate on the user's choice. 6. A data file named “INFO.DAT" contains Name, Address and Salary for number of employees. Write a program to display records of those employees whose salary is between 7500 to 15000 from above created data file. 7. Write a program to input a data file named "Marks.Dat" to store Name, Gender, and Marks in English, Nepali and Science. Program should terminate by user according to his/her choice. But the program should allow entering "M" of "F" for the gender. 8. Write a program top copy all records from above data file to the new data file named "PASS.DAT" for those students whose marks in English, Nepali and Science are >=40. 9. A data file named "INFO.DAT" contains Name, Address, Phone, E-mail for number of persons. Write a program to add more data to the same file. Program should terminate on the user's choice. Write a program to display records of "INFO.DAT" for those person whose ADDRESS is “Kathmandu" or "PATAN".
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY