The game “Monopoly” consist in total of 40 arranged fields(i.e. after field 40 it comes again to filed 1).With simplified rules you are moving there forwards as follows: On his game turn the player rolls with two dices and move with the sum of the thrown eyes further. But for example, if he lands on field 30(“Go to Jail”) then will be set direct on field 10(“Jail”). As a result you cannot reach all fields with the same probability in this game. For an optimal strategy one should know the probability whit which, each field in one round can be reach.

a) Write ascript monopoly1.m that the movement of a player over 1 000 000 rounds simulates(Start is at field 1). For each field will be counted, how often it would be achieved, and from that will be calculate at the end the the probability distribution of all fields. Write to this a function new = move(old), which determine trough dice (Hint: randi), in accordance with the rules, from the old position old {1, . . . , 40} ∈a new position new ,and which is repeatedly called from the main program monopoly1.m .

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

    By purchasing this solution you'll be able to access the following files:
    Solution.m and Solution1.m.

    for this solution

    or FREE if you
    register a new account!

    PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

    Find A Tutor

    View available MATLAB for Computer Science Tutors

    Get College Homework Help.

    Are you sure you don't want to upload any files?

    Fast tutor response requires as much info as possible.

    Upload a file
    Continue without uploading

    We couldn't find that subject.
    Please select the best match from the list below.

    We'll send you an email right away. If it's not in your inbox, check your spam folder.

    • 1
    • 2
    • 3
    Live Chats