[Project training] ATM self-service withdrawal system

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:

  1. Inheritance and polymorphism (overloading and overriding) mechanism in object-oriented technology, use of various modifiers
  2. Definition and use of classes, packages, and interfaces
  3. Implementation of common tool classes and algorithms (arrays, vectors, strings, linked lists)
  4. Java common standard GUI components and their event processing
  5. Java exception handling mechanism
  6. Java database connection technology
  7. Java's Multithreading Technology
  8. Java Network Programming

3. Curriculum Design Manual

3.1 Demand Analysis

3.1.1 Function Analysis

  1. 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.
  2. Display, change, operation of deposit information, storage of deposit, withdrawal, transfer, amount.
  3. Changes to individual user passwords. Meet the needs of users.
  4. Set up a login interface to protect the security of the user's personal account.

3.1.2 Analysis of performance requirements

  1. 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.
  2. 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.
  3. 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

figure 1

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

  1. Query deposit information, store deposit information, withdraw deposit information, transfer deposit information
    figure 2

  2. Modify account information
    image 3

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

Initialization interface

② Function interface

Function interface

③ Query interface

Inquire

④ Withdrawal

withdraw money

⑤ Deposit

deposit

⑥ transfer

transfer

⑦ Change password

change Password

4.2.2 Deluxe Edition

① Initialization interface

Initialization interface

② Login portal

Log entry

③ Registration entrance

Registration entrance

④ Main interface

Main interface

⑤ Inquiry

Inquire

⑥ Deposit

deposit

⑦ Withdraw

withdraw money

⑧ Transfer

transfer

⑨ Change password

change Password

Guess you like

Origin blog.csdn.net/m0_68111267/article/details/130687234