软件名称:图书管理工具
总体设计:
1. 命令行操作方式
2. 欢迎页面 ---welcome to visit software of book management
Now is ...
(1).show all the books
(2)inquire book
(3).lend book
(4)return book
(5)add book
(6)show lent books
Please select one from services listed above:
3.show all the books 模块界面 :
T he total number of books is …
Number Name Author Press Status
… … … …
(B)back or (E)exit:
4.inquire book 界面:
Input book's name:
Number Name Author Press Status
… … … … ...
(B)back or (E)exit:
5.lend book 模块界面:
Please input name of the book you will lend:
Please input who:
成功的话输出: The operation is successful;
不存在此书的话输出: No corresponding book;
已借出的话输出 :The book has been borrowed;
(B)back or (E)exit:
6.return book 模块 界面:
Please input book's name:
操作成功的话输出: The operation is successful;
该书已归还的话 :Error, the book has been returned;
(B)back or (E)exit:
7.add book 模块界面 :
Please input book's name:
Please input book's author:
Please input book's press:
注:入库时图书的 status 默认为: storing
(B)back or (E)exit:
8.show lent books 模块界面:
The total number of lent books:
Number Name Author Press Who Time
… … … … … ...
(B)back or (E)exit:
9. 数据库设计:
为了打包的方便,使用文本方式存储数据
( 1 )总书单结构 :
Number Name Author Press Status
… … … … …
( 2 )外借书单结构 :
Number Name Author Press Who Time
… … … … … ...
10. 操作设计:
show all: 输出总书单的所有内容,并输出总数
inquire: 根据所提供的书名,搜索总书单,并输出相应内容
lend: 根据提供的书名,查询总书单,如果存在,则将对应条目的状态修改为 lending ,并将内容复制到外借书单中。
return: 根据提供的书名,查询外借书单,如果存在,则将对应条目删除,并将总书单中对应条目的状态修改为 storing
add: 根据提供的内容,在总书单中创建条目
show lent: 输出外借书单的所有内容
(注:实际做出来的软件和设计的有些出入)
本文介绍了一款图书管理软件的设计方案,包括命令行操作界面、各功能模块如查询、借阅等的操作流程,以及数据存储结构。

被折叠的 条评论
为什么被折叠?



