Author Topic: need help please for my assignment (lottery example)  (Read 684 times)

Offline jammyxxx

  • Newbie
  • *
  • Posts: 1
  • Matlab Forum
    • View Profile
need help please for my assignment (lottery example)
« on: March 17, 2010, 05:07:56 PM »
i am currently in university working in matlab and its really frustrating to work on matlab since its really hard if u dont understand it fully, i have an assignment to handle today so would appreciate it if u can help with the code, the question is:
 
  • Write a function that simulates the national lottery Assume that you buy a lifetime subscription to the lottery i.e. your numbers stay the same and you play the lottery once a week (calculate the approximate value of the subscription). Assume that:
    • Matching 6 numbers - £1,000,000 Match 5 - £1000 Match 4 - £50 Match 3 - £10
    After seeing results do you think it is statistically wise to play the lottery?(Hint: Use the random number generator to create the lottery numbers each week.)
thanks for ur help in advance xxx
« Last Edit: September 21, 2011, 12:08:44 AM by Matlab »

Matlab and SimuLink Development Forum

need help please for my assignment (lottery example)
« on: March 17, 2010, 05:07:56 PM »