Hi every one.
I have this project, with a library management system. i am battling, as we do not have a teacher for two weeks to ask.
here is the Question:
Global Library is one of the largest libraries in Singapore that offers books, periodicals, journals, magazines, and educational software. It has an unmatched commitment that has built customer loyalty and long-term relationships. Currently, the staff members maintain the records of its members and their daily transactions manually. However, due to the increasing business, the management has decided to computerize the library management system.
Whenever new members joins, they need to fill up an entry-level form that provides the necessary information, such as the member identification number, the member's first name and last name, the phone number, and the addess. If the new member privides incomplete information, an error is generated and the member is not registered.
The library lends out books and journals on a rental basis only to its members. Books are issued for seven days, and journals are issued for three days. If a member does not return the book or journal within the specified time, the member has to pay a fine. If the books are returned with a delay of three days, the member needs to pay $50 and if the delay exceeds this period, a fine of $20 is charged per day.
The library maintains a catalog of all the books available in stock. There are two copies of each book. A member can make a requisition for a book that is not available in the library. The management the purchases the book and informs its member about the new arrival.
The following tasks need to be performed:
1. Write the pseudocode and draw a flowchart that depicts the registration process for new members. This process should cater to multiple registrations at one instance. All the relevant information needs to be supplied, and all the information being accepted need to be validated as described above.
2. Write a pseudocode for the requisition of books that are unavailable in the stock.
3. Write a procedure that calculates the amount of fine to be paid by a member in case of delay.
4. Write pseudocode for the book return system that calls the procedure for calculating thefine to be paid by the member.
5. Draw a flowchart showing the entire system of book return used by Global Library.
6. Prepare test data for the algorithms and their results.
7. Prepare a System Manual comprising of the problem statement, all the flowcharts and pseudocode, some test data, and their results.
My first answer is as follows:
begin
Character cMemberId cFirstName cLastName cAdress
Numeric nPhNo
Display "Enter member ID"
Accept cMemberId
Display "Enter First name"
Accept cFirstName
while
Display "Enter Last name"
Accept cLastname
Display "Enter phone No"
Accept nPhNo
Display "Enter Adress"
Accept cAdress
Begin
If cMemberId cFirstName cLastName cAdress or Numeric nPhNo =0
Display "Fields cannot have a null value" else
End
End
I did see someone else post about this, but mine looks different. Any help?
I do not want just answers as i want to learn and not copy, but any help will be appreciated.
3 replies to this topic
#1
Posted 14 June 2011 - 05:41 AM
|
|
|
#2
Posted 17 June 2011 - 02:49 AM
This is my nr.2
begin
Database dbMembers_database.db
Character cBookName cMemberId
Numeric nBookAmount
Display "Enter member ID" //Read Details of member to phone //when book arrives from dbmember_database.db
Accept cMemberId
Display "Enter Book Name" //what book to order
Accept cBookName
Display "Enter amount of books to order"
Accept nBookAmount
If nBookAmount>=2
Display "Book will be ordered"
else
Display "minimun of 2 Books per order"
End
begin
Database dbMembers_database.db
Character cBookName cMemberId
Numeric nBookAmount
Display "Enter member ID" //Read Details of member to phone //when book arrives from dbmember_database.db
Accept cMemberId
Display "Enter Book Name" //what book to order
Accept cBookName
Display "Enter amount of books to order"
Accept nBookAmount
If nBookAmount>=2
Display "Book will be ordered"
else
Display "minimun of 2 Books per order"
End
Edited by Alexander, 18 June 2011 - 02:26 AM.
Approved this post (after Fayyaz had posted.)
#3
Posted 18 June 2011 - 12:26 AM
First i would say since you are asked flow chart so draw that on paper.
Start with high level stuff first like one box saying "validate and create a new user". Inside this you could latter add manual details of inputting field one, two, three and validating each.
The rough sketch of the entire program (or the sections of entire program that are required in question at least) should be done first.
Minor details like each field would be figured out latter.
A major thing required in your logic would be, "how would you store your members and books so they could be looked up efficiently".
If you try to store them in alphabetical order you need to create some thing like a dictionary data structure. Or you could come up with a good hash function.
But the bottom line should be that you need to be able to search a book quickly as well as a name even if it doesn't exist in your whole database.
Move ahead with that and let us know what specifically you need help with.
Start with high level stuff first like one box saying "validate and create a new user". Inside this you could latter add manual details of inputting field one, two, three and validating each.
The rough sketch of the entire program (or the sections of entire program that are required in question at least) should be done first.
Minor details like each field would be figured out latter.
A major thing required in your logic would be, "how would you store your members and books so they could be looked up efficiently".
If you try to store them in alphabetical order you need to create some thing like a dictionary data structure. Or you could come up with a good hash function.
But the bottom line should be that you need to be able to search a book quickly as well as a name even if it doesn't exist in your whole database.
Move ahead with that and let us know what specifically you need help with.
#4
Posted 18 June 2011 - 03:25 AM
Also, both Dia and Dynamic Draw are free tools you can use for creating your flowcharts. Do you have any specific questions about what you've done so far?
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









