MATLAB: Help modifying code for new assignment

assignmentcodehomeworkMATLABmodifymonte carlorandomschoolsimulation

I have a matlab script that I am supposed to modify for a different assignment. I believe the idea of the assignment is to run a random simulation many times to see which option in the assignment is the best choice. I have attached the m-file that needs to be adjusted and an image of the assignment. The entire m-file that needs to be modified is commented out nicely and explains everything in the code.

Best Answer

Looks like he wants you to solve it numericaly via a Monte Carlo experiment. Start modifying by renaming things, like n_games = numberOfTests, and score_p = score1 (the score for the first option of 2 tests), etc. Once you start renaming things, perhaps the path forward will become more clear.