HELP!!!!emergency ~expert please help

This is a discussion on HELP!!!!emergency ~expert please help within the C Programming forums, part of the General Programming Boards category; HELP!!!!emergency Problem~expert please help Write a program that implements a simple Library Inventory Management System for oxford to help the ...

  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    4

    HELP!!!!emergency ~expert please help

    HELP!!!!emergency Problem~expert please help
    Write a program that implements a simple Library Inventory Management System for oxford to help the Library staff to manage the operations in the library.

    Functionalities:

    There are two main modules in this system which are:

    • Librarians module
    • Students module

    Each module has its own different functionalities as stated below:

    Librarian Module:

    Functionalities Descriptions
    Log in
    To enable librarian to log in. All the username and password of the librarian is stored in file called “Librarian_ID.txt”. All the librarian must log in to the system before perform any functionalities listed below.
    Add new items
    • Add books
    • Add periodical
    • Add DVD
    To let librarian to add new items to the library collection which can be books, periodical and DVD? Librarian needs to specify which one to add. Add items to the respective files as below:
    Book – “Items_Book.txt”
    Periodical – “Items_Periodical.txt”
    DVD – “Items_DVD.txt”

    Display item
    • Display all item (Books, Periodical, DVD)
    • Display book collections only
    • Display Periodical collection only
    • Display DVD only
    To let librarian to display items in the library. They can choose to display all items, books collections only, periodical only or DVD only. Librarian needs to choose one to display. Read from the respective files to display the items as below:
    All – “Items_Book.txt”, Items_Periodical.txt” and Items_DVD.txt”.
    Book – “Items_Book.txt”
    Periodical – “Items_Periodical.txt”
    DVD – “Items_DVD.txt”

    All display must be in a table format where there is a header that contain all information of the items stored such as Author, Title, Publication date, etc.
    Check out item
    • Check out book
    • Check out periodical
    • Check out DVD
    To enable the librarian to check out the items that is borrowed by the students. They can choose to check out books, periodical and DVD. Librarian only needs to choose one to check out. To check out a book, just change the status of the items from ON_SHELF to CHECK_OUT. Use the call number of the items to find it in the text file. Display warning message if try to check out an item that is already check out. Assume there is no need to keep track of the due date. Read and change the status of the items from the following files to check out the following items:
    Book – “Items_Book.txt”
    Periodical – “Items_Periodical.txt”
    DVD – “Items_DVD.txt”

    Check in item
    • Check in book
    • Check in periodical
    • Check in DVD
    To enable the librarian to check in the items that is returned by the students. They can choose to check in books, periodical and DVD. Librarian only needs to choose one to check out. To check in a book, just change the status of the items from CHECK_OUT to ON_SHELF. Use the call number of the items to find it in the text file. Display warning message if try to check in an item that is already on shelf. Assume there is no need to keep track of the due date. Read and change the status of the items from the following files to check in the following items:
    Book – “Items_Book.txt”
    Periodical – “Items_Periodical.txt”
    DVD – “Items_DVD.txt”






    Student Module:

    Functionalities Descriptions
    Log in To enable librarian to log in. All the username and password of the students is stored in file called “Student_ID.txt”. All the students must log in to the system before perform any functionalities listed below.
    Search items
    • Search all items
    • Search books
    • Search periodical
    • Search DVD
    To enable students to search for the items they want. They can choose to search from all items including books, peirodical and DVD or they can choose only one of the items to choose from. Read from respective files to search the items as below:
    All – “Items_Book.txt”, Items_Periodical.txt” and Items_DVD.txt”.
    Book – “Items_Book.txt”
    Periodical – “Items_Periodical.txt”
    DVD – “Items_DVD.txt”

    Display all information of the items if it is found otherwise display a not found message.
    You have to use Call Number Author/Artist name or Title or ISBN/ISSN of the items as search criteria where user can choose from any of these four criteria during search.

    Assumptions:

    • No need to keep track of the due date.
    • There is only one copy of the items in the library.
    • Each item is assumed to be in CHECK IN status when it is added to the files.

    Data Specification:


    The following data are to be stored for each of the files below:

    Items_Book.txt

    • Call number (Format for book: start with ‘B’ and follow by 6 digits, e.g.: B123456)
    • Author(s) (Maximum length = 128 characters)
    • Publication date (Maximum length = 11 characters, format = mm/dd/yyyy)
    • Title (Maximum length = 128 characters)
    • Publisher location (Maximum length = 81 characters)
    • Publisher name (Maximum length = 81 characters)
    • ISBN (Format e.g.: 0-13-239300-X)
    • State (ON_SHELF or CHECKED_OUT)

    Items_Periodical.txt

    • Call number (Format for Periodical: Start with ‘P’ and follow by 6 digits, e.g.: P123456)
    • Author(s) (Maximum length = 128 characters)
    • Publication date (Maximum length = 11 characters, format: mm/dd/yyyy)
    • Title (Maximum length = 128 characters)
    • Periodical name (Maximum length = 128 characters)
    • Page range (Maximum length = 16 characters, format: pp. xx - xx)
    • ISSN(Format e.g.: 0378-5955)
    • State (ON_SHELF or CHECKED_OUT)


    Items_DVD.txt

    • Call number ((Format for DVD: Start with ‘D’ and follow by 6 digits, e.g.: D123456)
    • Artist(s) (Maximum length = 128 characters)
    • Title (Maximum length = 128 characters)
    • Label (Maximum length = 81 characters)
    • Date (Maximum length = 11 characters, format: mm/dd/yyyy)
    • State (ON_SHELF or CHECKED_OUT)

    Librarian_ID.txt

    • Username (Maximum length = 30 characters)
    • Password(Maximum length = 30 characters)

    Student_ID.txt

    • Username (Maximum length = 30 characters)
    • Password(Maximum length = 30 characters)

    Requirement:

    • Each functionality and its sub functionalities must be implemented using one function.
    • Draw a structure chart for this system before you write the code.
    • Try to write pseudocode or draw flowchart for each function before writing code.
    • Provide comment as documentation for your program.
    • The program must be menu-driven. Provide a main menu so user can choose from each functionality and sub menu for the sub functionality. Below show a sample part of the menu-driven program of a main menu and sub menu.


    WELCOME TO LIBRARY INVENTORY MANAGEMENT SYSTEMS

    Please choose your login from below:

    1. Librarian
    2. Student

    Login as: 1

    Please enter the following:
    Username:
    Password:

    WELCOME TO THE LIBRARIAN MODULE:

    Please choose a task to perform:

    1. Add new items
    2. Display items
    3. Check out items
    4. Check in items
    5. Quit

    Task: 1

    Add new items

    Please choose one items from below to add:

    1. Books
    2. Periodicals
    3. DVD

    Item: 1

    //Ask user to enter all the required information of the books and save to Items_Book.txt.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    I will report this as a double post - if your other post is in the wrong area, please post a comment to have it moved. I suggest the moderators remove this post.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. HELP!!!!emergency Problem~expert please help
    By unknowppl in forum C++ Programming
    Replies: 9
    Last Post: 08-21-2008, 07:41 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21