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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started