programming in C Language
S14_CSCI 6610
Assignment 2
Write a small library system which will let us store information about books, students and provides functionality such as List all books, List all the students, Find a book using Book ID or Book name, Find student by Student ID or Student name…etc.
Your program should hold the following information regarding students.
Student ID
Student name
Student email
Your program should hold the following information regarding books.
Book ID
Book name
Author
Quantity
ISBN number
Your program should be menu driven and the initial user menu selection should look like following:
Library System Menu
1. Load Student and Book information from file
2. Write Student and Book information to file
3. Add new book
4. Add new student
5. Print book list
6. Print student list
7. Find student by ID
8. Find student by name
9. Find book by ID
10. Find book by name
11. Find book by ISBN
12. Quit
Select: _
Note:
1) Define constants where ever you feel it is needed.
2) Use only one source file to put all your function including the main function. Do not use multiple modules yet.
3) Modularize the code using functions.
4) Store the student information and book information on separate files.
5) For the initial development assume there will be maximum of 10 students and 10 books. i.e. define the array sizes as 10. Use constants so that it can be easily extended.
6) When printing list use tabular form.
7) Use text files to store student and book information. (Do not use binary modes.)
8) Do not allow to enter duplicate student or book information into the system.