Java初学者:软件设计---一个简单的图书管理软件

本文介绍了一款图书管理软件的设计方案,包括命令行操作界面、各功能模块如查询、借阅等的操作流程,以及数据存储结构。

软件名称:图书管理工具

总体设计:

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: 输出外借书单的所有内容

(注:实际做出来的软件和设计的有些出入)

 

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值