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...

  • This case is a simplified (initial draft) of a new system for the University Library. Of...

    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 of patrons...

  • 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...

  • Java Lab Exam Example You are asked to develop a Library system demo for the librarian....

    Java Lab Exam Example You are asked to develop a Library system demo for the librarian. The system should allow the following functions: 1. Check-in Books a. The system will request users to input the following fields information about books i. Title ii. Price iii. Number of copies to be checked in b. Notes and hints: i. There should have no limit of how many books to be checked in at a time. ii. You can use JOptionPanel or any...

  • 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...

  • 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...

  • Valley View Town Library has grown to a stage where, due to the increased number of...

    Valley View Town Library has grown to a stage where, due to the increased number of loans, it is becoming increasingly difficult to maintain accurate records manually. Your company has been approached to design a suitable system to handle the required functionality of this system. Discussions with the head librarian, Mr. Lachlan Ward have resulted in the specific requirements of this system which have been detailed in the following paragraphs. Before people can borrow books from the library, they must...

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