1. Functional Analysis
① Administrator Management
Registration: Provide "user name", "Password"
Login
Exit
② register a card: Record the corresponding information.
③ Recharge Management: A card account to recharge, query, modify.
2. Technical Requirements
①java Basic Knowledge + collection Class (simulation database).
② data is stored in the way of objects: Administrator class, a cartoon class, top-up record class JavaBean.
3. Feature Detail Design
① Administrator Registration function
User input required: User ID, password, user name.
User name: Cannot start with a number, only alphanumeric _, and the length of the user name should be between 4-10 bits.
Password: cannot be the same as the user name, and the length must be between 4-10 bits.
The user number is automatically increased by the system.
None of the above information can be empty.
Feature requirements: If the user name already exists during registration, the replacement can be registered. A successful registration can be performed on the login operation.
② Login function
User input Required: User name, password.
A non-null validation of the user number and password is required. If the user name is not empty, verify that the user number exists and, if present, verify that the user name and password match, or that the information is prompted.
Functional Requirements: If the login is successful, enter the system main menu, otherwise prompt information, re-login or registration.
③ Administrator Information Management
To modify administrator information, please refer to the requirements at the time of registration.
Delete Administrator information, you need to enter the user number first, and then delete according to the user number.
Query administrator information, query criteria: According to the number or real name to find information, see all the information.
④ Handle a card
User input required: name, contact, amount.
The program automatically generates a "card number".
The information entered above needs to be validated.
Functional requirements: A card when successful, the information prompts, or re-processing.
⑤ Recharge Management
Increase the amount according to the card number to view the amount.
Top-up management system based on Java SE Collection