Question: Create a C++ program: Create a simple economic model that starts with 1000 people/accounts that all have $100.00. The rule for the model is to

Create a C++ program:

Create a simple economic model that starts with 1000 people/accounts that all have $100.00. The rule for the model is to select two accounts at random. Then with those two accounts randomly assign an amount to the transaction that is limited by the account with the least amount of money. Said another way. If one account has $20 and the other $100 the transaction amount is limited to $20. Proceed through a number of random transactions and then output the result. You can make your program take command line parameters or interact with the user. We will be progressing through this assignment in class.

I would appreciate it if, comments and explanations were written as well since im trying to understand the program as well!

Thanks!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!