- 1

How do i update details of student in library maanagemen program

A library maintains its book information (stock) in a text file. An application needs to be developed which will read the text file and display all the books available for borrowing. Then with each transaction (borrowing) a note should be generated for the particular borrower and should be written into a file. The stock of the books should also be updated after each transaction. For example, if the library had 10 books of specific title, then if one of those books is borrowed then the number should change to 9. In the case of returning a book, a note should again be generated for the person returning the book. The stock should also be updated i.e. the quantity of the book returned should be increased by 1. A sample format of the text file containing the information about the books is as follows: Harry Potter,JK Rowling,30,$2 Start With Why,Simon Sinek,10,$1.5 Programming With Python,John Smith,20,$1.5 A note should be generated for each transaction. When a person borrows a book a note should be generated which must contain the name of the borrower, the name of the book borrowed, the date and time of such issue and the total amount to be paid for the borrowing. If a person decides to borrow multiple books then all the borrowed books should be written to the note and the amount should be added up for all the borrowed books. When a person returns a book to the library, a note should be generated and written to the file again. The note should contain the name of the borrower, name of the book, date and time of the return. The lending duration should be set to 10 days, and if a person is late in returning the book, a fine should be applied on a daily basis which should also be present in the generated file Help will be aprreciated

11th Jan 2019, 12:20 PM
ali baba
ali baba - avatar
1 Resposta
0
Just read the file and do some simple logic. It shouldn't that hard, because you just have to code the detailed steps you just mentioned.
17th Apr 2020, 7:54 PM
Felix Stolle
Felix Stolle - avatar