ass1_17.pdf - Department of Mathematics and Statistics...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Department of Mathematics and Statistics MAST30028 Numerical Methods & Scientific Computing 2017 Assignment 1: Simulation & errors Due: 5 p.m. August 28 This assignment is worth 20% of the total assessment in MAST30028. Note: Submit copies of MATLAB programs and sufficient relevant output using the link on the LMS. To aid marking, please start Questions 3 and 4 on a new page in your write-up. 1 Roulette [20 marks] In Crown Casino a roulette wheel has 18 slots coloured red, 18 slots coloured black and 1 slot (0) coloured green. The red and black slots are also numbered from 1-36. You can play various “games” or “systems” in roulette. Four possible games are: A. Betting on Red This game involves just one bet. You bet $1 on red. If the ball lands on red you win $1 (and get your bet back), otherwise you lose $1. B. Betting on a number This game involves just one bet. You bet on a particular number, say 17; if the ball lands on that number you win $35 ( and get your bet back), otherwise you lose $1. C. Martingale System In this game you start by betting $1 on red. If you lose, you double your previous bet; if you win, you bet $1 again. You continue to play until you have won $10, or the bet exceeds $100. D. Labouchere System In this game you start with the list of numbers (1, 2, 3, 4). You bet the sum of the first and last numbers on red (initially $5). If you win you delete the first and last numbers from the list, which becomes (2,3), otherwise you add the sum to the end of your list (which becomes (1, 2, 3, 4, 5)). You repeat this process till your list is empty, or the bet exceeds $100. (If only one number is left on the list you bet that number).
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern