Individual projects
Management of book Invoicing system
Name: Jia Gingdo
Study No.: 201303011135
Class: ITCSC 13-1
Date: 2015/4/24
I. Introduction of the topic
Management of book Invoicing system
1. User Login
The user only need one, namely admin Administrator, the user password is 123456, the user login information is saved in the property file user.properties , The user enters a user name and password when logged on, if successful, the system menu is printed, the unsuccessful log in again, the number of unsuccessful times is 3 , more than 3 times, the system exits.
2, System menu:1, inventory management 2, sales management 3, exit system
3, choose a different menu, enter different management functions. 1, Inventory management: Use bookStore.txt file as a library data file,
After entering the inventory management can only carry out the library operation and exit, that is, to add book information to the file, if the book name in the document already exists, then enter the book, you need to the original book inventory based on the addition of data. If there is no such book, it is entered as a new data.
Background interface:1, book storage 2, Exit
For example:
If the input information is: Java Foundation, then the next step only need to enter the quantity of incoming goods.
If the input information is:HTML, this book does not, then need to carry out detailed input, the next step into the author name, price, price, inventory and other information.
4, Sales Management: Use sell.txt file as book sales information preservation,
Background interface:1, book sales 2, Exit
Sales Management process:
Second, the source of GitHub links
Https://github.com/JiaDianDuo/java_core/tree/master
Third, the design of the module test cases, test results of the drawing
Package com.langxi.homework;
Import static org.junit.assert.*;
Import Org.junit.Test;
public class Librarysystemtest {
@Test
public void Test () {
Fail ("not yet implemented");
}
}
Operation Result:
Iv. problems and solutions and experiences
In the process of library storage, there are often errors in the recording of existing books.
Using the randonacessfile. txt file as the database of the library system.
The recording information of a book uses a fixed length string, which facilitates the modification of the information.
Software Engineering-Personal projects