Question
Library System Project The library at the University stores different items that can be borrowed, including books and journals. The library offers this service to a university members who include: students, staff and faculty members, but only faculty members can borrow journals. Students can borrow up to a maximum of 5 books and staff can bormow up to a maximum of 7 books, and faculty member can borow up to a maximum of 10 books and 3 journals. When a user borrows a book, they provide their Id, if this is valid their loan details are checked to ensure that they have not already borrowed above the maximum permitted number of books. The following is a brief class diagram that describes classes in this system and their relationships. Date Item month year SBN Libraryltem avalibaleCopies name email Book major work-phone author2 author3 Facu
media%2Feed%2Feed4fd27-9859-404a-a653-0c
media%2F00d%2F00df966b-5dc8-4217-a886-79
0 0
Add a comment Improve this question Transcribed image text
Answer #1

The prgm below discusses the disk usage and login names of different users:

printf("total disk space of the partition: %ld MB \n",((stat.f_bsize)*(stat.f_blocks))/(1024*1024));
printf("total free disk space of the partition: %ld MB \n",((stat.f_bsize)*(stat.f_bfree))/(1024*1024));
printf("total used disk space of the partition: %ld MB \n",((stat.f_bsize)*(stat.f_blocks-stat.f_bfree))/(1024*1024));
break;

case 5:
fp=fopen("/etc/passwd","r");
printf("the login names of the connected users:\n ");
do
{
p=fgetpwent(fp);
if(p!=NULL)
{
printf("%s \n",p->pw_name);
count++;
}
else;
}while(p!=NULL);
printf("the number of connected users: %d \n",count);
break;

Add a comment
Know the answer?
Add Answer to:
Library System Project The library at the University stores different items that can be borrowed, including...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • This project supposed to develop a database system for a library for a university. The system...

    This project supposed to develop a database system for a library for a university. The system contains information about books, book authors, students, and faculty. Students and faculty are allowed to borrow books from the library. You should design the system to contain entities and attributes to store data that makes the system able to report the requested information by executing the queries. SQL Queries: 1. List the names and email for students who borrowed books along with the number...

  • Design an ER diagram for a library management system. The library manages books, members, and books...

    Design an ER diagram for a library management system. The library manages books, members, and books borrowed by members.  The library has several branches around the city. Each branch has a name and address and is identified by a branch ID.  Each book in the system is identified by a unique ISBN along with its title, author(s), and publisher.  A publisher is identified by its name, address, and phone. Note that publishers may be based anywhere around...

  • Design an ER diagram for a library management system. The library manages books, members, and books...

    Design an ER diagram for a library management system. The library manages books, members, and books borrowed by members.  The library has several branches around the city. Each branch has a name and address and is identified by a branch ID.  Each book in the system is identified by a unique ISBN along with its title, author(s), and publisher.  A publisher is identified by its name, address, and phone. Note that publishers may be based anywhere around...

  • Case Study:UniversityLibrarySystem This case is a simplified (initial draft) of a new system for the University...

    Case Study:UniversityLibrarySystem This case is a simplified (initial draft) of a new system for the University Library. Of course, the library system must keep track of books. Information is maintained about both book titles and the individual book copies. Book titles maintain information about title, author, publisher, and catalog number. Individual copies maintain copy number, edition, publication year, ISBN, book status (whether it is on the shelf or loaned out), and date due back in. The library also keeps track...

  • Can somebody help me with the Use Case Diagram . I am confused of what I...

    Can somebody help me with the Use Case Diagram . I am confused of what I am suppose to do. Here are the instructions : Your team should produce a Use Case Diagram and the associated Use Case Descriptions/Narratives for all the use cases in the diagram. The resulting document should havethe “professional look” and produced by a word processor, graphics/presentation/drawing software, and/or a CASE tool (e.g., Microsoft Word, Microsoft PowerPoint, ArgoUML, Dia, Visual Paradigm, Visio, etc.). All project documentation...

  • The CIS Department at Tiny College maintains the Free Access to Current Technology (FACT) library of...

    The CIS Department at Tiny College maintains the Free Access to Current Technology (FACT) library of e- books. FACT is a collection of current technology e-books for use by faculty and students. Agreements with the publishers allow patrons to electronically check out a book, which gives them exclusive access to the book online through the FACT website, but only one patron at a time can have access to a book. A book must have at least one author but can...

  • Draw the Data Flow Diagram for the following requirements The School of Automation wants a new...

    Draw the Data Flow Diagram for the following requirements The School of Automation wants a new web application developed for managing their library. The items maintained in the library are books, videos, and software. Students, faculty, staff of the university, besides the residents of the state of Iowa are provided borrower privileges. A Call number uniquely identifies each item in the library. The phase 1 of the software involves Adding a new item to the library: The details of the...

  • In this project, you will construct an Object-Oriented framework for a library system. The library must...

    In this project, you will construct an Object-Oriented framework for a library system. The library must have books, and it must have patrons. The patrons can check books out and check them back in. Patrons can have at most 3 books checked out at any given time, and can only check out at most one copy of a given book. Books are due to be checked back in by the fourth day after checking them out. For every 5 days...

  • IN C++ My project will be a library management system. It will have seven functions. It...

    IN C++ My project will be a library management system. It will have seven functions. It HAS to contain: classes, structures, pointers and inheritance. fix code according to below 1. Add a new book allows the user to enter in book name and book code Book code has to be in # “Invalid book code” “book name has been added to library” book code will be used to borrow books 2. Add a new user must use first user must...

  • Subject: Java Program You are writing a simple library checkout system to be used by a...

    Subject: Java Program You are writing a simple library checkout system to be used by a librarian. You will need the following classes: Patron - A patron has a first and last name, can borrow a book, return a book, and keeps track of the books they currently have checked out (an array or ArrayList of books). The first and last names can be updated and retrieved. However, a patron can only have up to 3 books checked out at...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT