Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CSCE 1030: Project 4 Spring 2018 Due: May 02, 2018 11.59 PM PROGRAM DESCRIPTION: In this project, you will build a library management system. The

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

CSCE 1030: Project 4 Spring 2018 Due: May 02, 2018 11.59 PM PROGRAM DESCRIPTION: In this project, you will build a library management system. The library management system is built around two files students.txt and books.txt. The students.txt file has two columns: i) EUID of the student, ii) Number of books borrowed. The books.txt file has the following columns: i) Full Name of the author of the book with individual words separated by spaces, ii) Full Title of the book with individual words separated by spaces, iii) ISBN of the book (an 8-digit long number), iv) EUID of the student that has borrowed the book, the value of EUID is "NA" if the book is has not been borrowed yet, and (v) the last three columns consists of the month, day and year respectively of the date the book was borrowed, whose values are O if book has not been borrowed. Each item is separated by a tab space as the delimiting character. Both files have been provided to you. Download the files and back them up. As you test your project, you may corrupt them during file I/O process, so it is critical to back them up. Also, verify these files by opening them when you are testing your project. The library management system needs to have the following features: a) Adding a book to books.txt file b) Borrowing a book and updating both text files c) Returning a book and updating both text files d) Searching books by using author's name e) Searching books by using book's name f) Searching books borrowed by a specific student Also, provided to you are my_header.h file as well as the main.cpp file. Check what is in the header file. You will need to use this header file as well as edit it later. Open the main.cpp file. You have to add your codes to the main.cpp file to finish your project. This file already has some functions available to you: main: It is the main function. search_booko: This function is invoked when we want to search the databases. This is called by the main function. This function, in turn, calls other functions depending on how we want to search. number_of_books: This function returns the total number of books in the books.txt file. number_of_students: This function returns the total number of students in the students.txt file. DO NOT EDIT THESE FUNCTIONS, UNLESS SPECIFICALLY MENTIONED. CSCE 1030: Project 4 Spring 2018 Due: May 02, 2018 11.59 PM PROGRAM DESCRIPTION: In this project, you will build a library management system. The library management system is built around two files students.txt and books.txt. The students.txt file has two columns: i) EUID of the student, ii) Number of books borrowed. The books.txt file has the following columns: i) Full Name of the author of the book with individual words separated by spaces, ii) Full Title of the book with individual words separated by spaces, iii) ISBN of the book (an 8-digit long number), iv) EUID of the student that has borrowed the book, the value of EUID is "NA" if the book is has not been borrowed yet, and (v) the last three columns consists of the month, day and year respectively of the date the book was borrowed, whose values are O if book has not been borrowed. Each item is separated by a tab space as the delimiting character. Both files have been provided to you. Download the files and back them up. As you test your project, you may corrupt them during file I/O process, so it is critical to back them up. Also, verify these files by opening them when you are testing your project. The library management system needs to have the following features: a) Adding a book to books.txt file b) Borrowing a book and updating both text files c) Returning a book and updating both text files d) Searching books by using author's name e) Searching books by using book's name f) Searching books borrowed by a specific student Also, provided to you are my_header.h file as well as the main.cpp file. Check what is in the header file. You will need to use this header file as well as edit it later. Open the main.cpp file. You have to add your codes to the main.cpp file to finish your project. This file already has some functions available to you: main: It is the main function. search_booko: This function is invoked when we want to search the databases. This is called by the main function. This function, in turn, calls other functions depending on how we want to search. number_of_books: This function returns the total number of books in the books.txt file. number_of_students: This function returns the total number of students in the students.txt file. DO NOT EDIT THESE FUNCTIONS, UNLESS SPECIFICALLY MENTIONED

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Evaluate 3x - x for x = -2 Answer:

Answered: 1 week ago

Question

What is group replacement? Explain with an example. (2-3 lines)

Answered: 1 week ago

Question

5. Understand how cultural values influence conflict behavior.

Answered: 1 week ago

Question

e. What do you know about your ethnic background?

Answered: 1 week ago