[Import] bank withdrawal and accounting business scenarios

Source: Internet
Author: User

Bank withdrawal and accounting business scenarios

Simulate the specified number of users. each user has an account in the bank and the original funds are randomly generated (an integer ).
The original funds of all users are called the original total assets. Each user can choose to withdraw funds or transfer funds randomly, which is called transactions.
If withdrawal is made, only 1/5 of the account balance is allowed. (If the balance is less than 5 yuan, no withdrawal is allowed .) After withdrawal, the system records the user's cash amount.
If the account is transferred, only 1/2 of the account balance (excluding the non-integer zero header) is allowed. The transfer object is randomly generated, but not included by the parties themselves.

User behavior is independent, transactions are free of service fees, transfers are received immediately, and objects and recorded data are created in the memory.

Design

Read the full text

Category:View comments on software development
ArticleSource: http://hi.baidu.com/zdz8207/blog/item/c1a284440825b84b500ffe13.html

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.