You have the option to throw a dice up n times. You will earn the face value of the dice. You have the option to stop after each throw and walk away with the money earned. What should be your strategy, and What is the expected payoff of this game? I know that for 1st roll, expected payoff is (1+2+...+6)/6=$3.5, for 2nd roll, if I get 4,5,6 which is >$3.5, stop rolling, else roll 2nd time, expected payoff for 2nd roll is 0.5(4+5+6)/3+0.5*3.5=$4.25; for 3rd roll, if get 5,6 which is >4.25, stop rolling, if not, roll 4th time. This is fine. But I was asked if I need to do a macro for this, how should I program for the nth roll? I wasn't able to answer it...Can anyone help me?