图书馆信息系统 [英] Library information system

查看:66
本文介绍了图书馆信息系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

开发一个提供以下功能的图书馆信息系统:


a)添加新赞助人

b)搜索赞助人

c)签出簿


顾客ID是唯一的,由系统自动生成。任何赞助人最多可以借三(3)本书。贷款期限为两(2)周。您的程序将检索计算机的当前日期,以用作借阅书籍的日期并自动计算截止日期。您可以假设图书馆只有任何图书标题的副本。至少五(5)位顾客?数据应用于演示系统的工作情况。


样本输出


图书馆信息系统

(添加新赞助人)

-------------------------------------- -------------------------------------------------- -

赞助人ID:LS0452

姓名:Edward Johnson

地址:雪兰莪八打灵再也绿街3号

电话。 No:03-12345678


保存记录? [y / n]

图书馆信息系统

(退房预订)

------------- -------------------------------------------------- ---------------------------

日期:21/01/2002

序列号:005.133 HOR

赞助人ID:LS0452


保存记录? [y / n]


图书馆信息系统

(搜索赞助人)

------ -------------------------------------------------- ----------------------------------

输入赞助人ID:LS0452
找到记录。


赞助人ID:LS0452

姓名:Edward Johnson

地址:3,Green Street ,八打灵再也,雪兰莪

电话。 No:03-12345678


项目1

-------

序列号:005.133 HOR

借款日期:21/01/2002

截止日期:03/02/2002


项目2

-------

序列号:205.54 GD

借阅日期:24/01/2002

截止日期:06 / 02/2002

解决方案

添加新赞助人:


名称

add

手机

0赞助人ID:LS0001 --->数组== 1:0001

1 | == 2:0054

2 | == 3:0123

3 0002


Y / N --->忽略大小


如果Y:


name --->存在--->是的 - > S.O.P


--->不存在--->数组


查看书籍:


date:comp genarate

SN:

patron id:


Y / N ---> S.N --->存在---> S.O.P(借来的)


--->不存在--->顾客身份--->存在--->是的 - >


--->不存在---> S.O.P(不存在)


patron id --->存在---> > 3books @< 3books


搜索:


patron id --->存在--->真的---> print ---> sop(


---> false ---> sop(



添加新赞助人:


名称

添加

手机

0赞助人ID:LS0001-- - >数组== 1:0001

1 | == 2:0054

2 | == 3:0123

3 0002


Y / N --->忽略大小


如果Y:


name - - >存在--->是---> SOP


--->不存在--->数组


查看书籍:


date:comp genarate

SN:

pa tron id:


Y / N ---> S.N --->存在---> S.O.P(借来的)


--->不存在--->顾客身份--->存在--->是的 - >


--->不存在---> S.O.P(不存在)


patron id --->存在---> > 3books @< 3books


搜索:


patron id --->存在--->真的---> print ---> sop(


--->假---> sop(



请阅读发布指南。

我们不做学生们在这里做作业。

如果你已经编写了一些代码并坚持下去,那么你可以发布它我们愿意帮忙。


< blockquote>是的..我们卡在这里..我们需要一些帮助n指南


Develop a library information system that provides the following functionalities:

a) Add New Patron
b) Search Patron
c) Check Out Book

The patron ID is unique and is generated automatically by the system. Any patron can borrow at most three (3) books. The period of loan is two (2) weeks. Your program will retrieve the computer?s current date to be used as the date a book is borrowed and calculate the due date automatically. You can make the assumption that the library has only one copy of any book title. At least five (5) patrons? data should be used to demonstrate the working of the system.

Sample Output

Library Information System
(Add New Patron)
------------------------------------------------------------------------------------------
Patron ID : LS0452
Name : Edward Johnson
Address : 3, Green Street, Petaling Jaya, Selangor
Tel. No : 03-12345678

Save record ? [y/n]
Library Information System
(Check Out Book)
------------------------------------------------------------------------------------------
Date : 21/01/2002
Serial Number : 005.133 HOR
Patron ID : LS0452

Save record ? [y/n]


Library Information System
(Search Patron)
------------------------------------------------------------------------------------------
Enter Patron ID : LS0452
Record found.

Patron ID : LS0452
Name : Edward Johnson
Address : 3, Green Street, Petaling Jaya, Selangor
Tel. No : 03-12345678

Item 1
-------
Serial Number : 005.133 HOR
Date Borrowed : 21/01/2002
Due Date : 03/02/2002

Item 2
-------
Serial Number : 205.54 GD
Date Borrowed : 24/01/2002
Due Date : 06/02/2002

解决方案

add new patron :

name
add
phone
0 patron id : LS0001--->array ==1 : 0001
1 | ==2 : 0054
2 | ==3 : 0123
3 0002

Y/N ---> ignore case

if Y :

name ---> exist ---> yes ---> S.O.P

---> not exist ---> array

check out book :

date : comp genarate
S.N :
patron id :

Y/N ---> S.N ---> exist ---> S.O.P(borrowed)

---> not exist ---> patron id ---> exist ---> yes --->

---> not exist ---> S.O.P ( not exist )


patron id ---> exist ---> >3books @ <3books

search :

patron id ---> exist ---> true ---> print ---> s.o.p (

---> false ---> s.o.p (


add new patron :

name
add
phone
0 patron id : LS0001--->array ==1 : 0001
1 | ==2 : 0054
2 | ==3 : 0123
3 0002

Y/N ---> ignore case

if Y :

name ---> exist ---> yes ---> S.O.P

---> not exist ---> array

check out book :

date : comp genarate
S.N :
patron id :

Y/N ---> S.N ---> exist ---> S.O.P(borrowed)

---> not exist ---> patron id ---> exist ---> yes --->

---> not exist ---> S.O.P ( not exist )


patron id ---> exist ---> >3books @ <3books

search :

patron id ---> exist ---> true ---> print ---> s.o.p (

---> false ---> s.o.p (

Please read the posting guidelines.
We don''t do students'' homework here.
If you''ve written some code and are stuck with it then you can post it we''ll be willing to help.


yes..we r stuck here.. we r newbie n need some help n guidelines


这篇关于图书馆信息系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆