Article directory
1. Course design purpose
"Object-Oriented Programming" is a basic computer course with strong practicality, and the course design is a more comprehensive comprehensive exercise after studying the course. Its purpose is to deepen students' understanding of the theory, methods and basic knowledge of object-oriented programming through practice, master the basic methods of using Java language for object-oriented design, and improve the ability to use object-oriented knowledge to analyze and solve practical problems.
2. Course Design Tasks and Requirements
Course design can use NetBeans, Eclipse, JBuilder, etc. as development platforms to improve development efficiency, and master one of the integrated development environments as proficiently as possible.
Through this design, it is required to master the following:
- Inheritance and polymorphism (overloading and overriding) mechanism in object-oriented technology, use of various modifiers
- Definition and use of classes, packages, and interfaces
- Implementation of common tool classes and algorithms (arrays, vectors, strings, linked lists)
- Java common standard GUI components and their event processing
- Java exception handling mechanism
- Java database connection technology
- Java's Multithreading Technology
- Java Network Programming
3. Curriculum Design Manual
3.1 Demand Analysis
3.1.1 Function Analysis
- The display and deletion of the information of the individual user of the ATM machine. The information of the individual user mainly includes: account number, password, and the amount of deposit.
- Display, change, operation of deposit information, storage of deposit, withdrawal, transfer, amount.
- Changes to individual user passwords. Meet the needs of users.
- Set up a login interface to protect the security of the user's personal account.
3.1.2 Analysis of performance requirements
- Ease of operation of the system:
The developed system is easy to operate, and the system operation is not restricted by the user's knowledge level of the computer as far as possible. - The system is maintainable:
because the system involves a wide range of information, the data in TXT needs to be modified regularly, and the available space and performance of the system will also decrease accordingly, in order to make the system work better. - The system is open:
the system can run in an open hardware system structure, and can be smoothly connected with other systems, and will not need to be modified a lot due to different aspects of the external system.
3.2 Outline Design
3.2.1 Functional block diagram
3.3 Detailed Design
3.3.1 Entity class design
Deposit information entity class: attributes include deposit balance (deposit), withdrawal amount (withdraw), transfer amount (transfer accounts).
Account information entity class: attributes include account password (Password)
3.3.2 Realize database processing
This program uses txt files to store data, and adds a data class in java to operate
things in txt files.
3.4 Main program function flow chart
-
Query deposit information, store deposit information, withdraw deposit information, transfer deposit information
-
Modify account information
4. Course design results
4.1 Complete code
Lite version: ATM self-service withdrawal system (Lite version)
4.2 Running results
4.2.1 Lite version
① Initialization interface
② Function interface
③ Query interface
④ Withdrawal
⑤ Deposit
⑥ transfer
⑦ Change password
4.2.2 Deluxe Edition
① Initialization interface
② Login portal
③ Registration entrance
④ Main interface
⑤ Inquiry
⑥ Deposit
⑦ Withdraw
⑧ Transfer
⑨ Change password