Thread: College Assessment-HELP!

  1. #1
    Registered User
    Join Date
    Jul 2002

    Question College Assessment-HELP!

    I'm trying(but failing) to write a library sytem program for a college assessment. Library system contains only books and journals. Can b several copies of a book. Staff members can also b lib- mems, and only they can borrow journals. Staff can borrow up to 12 items but other mems can only borrow up to 6 items. System must produce reminders when a book is overdue. books on loan can b reserved. Can only extend the loan of a book if it is not reserved.
    I have been told that the application should hold an array of pointers to items(copies of books or journals), and an array of library members(who may be members of staff).
    My question is HOW and WHERE I would implement these arrays?
    I've always been very unsure when it comes to dealing with arrays and I would be greatful if someone could shed a bit of light on the situation as I feel I have hit a brick wall here.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    First off, decide on the data you need

    a library member would perhaps contain
    - name
    - staff/student flag
    - number of borrowed items
    - array of 'n' pointers to books/journals

    A book/journal contains
    - title
    - author
    - book/journal flag
    - is on loan to (pointer to library member)
    - is reserved by (pointer to library member)
    - return date

    Then think about such functions as
    - member reserves book
    - member borrows book
    - member returns book
    - search for books overdue

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Should I go to a state college and be 20k in debt, or a private college and be 90k in
    By Terrance in forum A Brief History of
    Replies: 10
    Last Post: 10-10-2003, 08:22 PM
  2. University versus college, which should I do?
    By Terrance11 in forum A Brief History of
    Replies: 1
    Last Post: 07-02-2003, 11:19 PM
  3. Which college should I go to?
    By Terrance in forum A Brief History of
    Replies: 15
    Last Post: 05-13-2003, 10:06 PM
  4. College or No College :: Future
    By kuphryn in forum A Brief History of
    Replies: 13
    Last Post: 09-25-2002, 03:48 PM
  5. University College
    By oskilian in forum A Brief History of
    Replies: 15
    Last Post: 11-30-2001, 02:55 PM