Question 1026010
To find the expected gain or loss, we proceed as follows:
If you win $1,000,000, your gain is $999,999. (Because of the $1 you spent in buying the ticket.) This has probability 0.0000001.
If you win $1,000, your gain is $999 (again because of similar reasoning as above).  This event has probability 0.000005.
If you win $10, your gain is $9 (Should be easy now.)  This event has probability 0.0002.
If you don't win at all, you gain -$1 (a loss!).  This event has probability 1 - 0.0000001 - 0.000005 - 0.0002 = 0.9997949.
Thus the expected gain or loss is 
999,999*0.000001 + 999*0.000005 + 9*0.0002 + (-1)*0.9997949 = -$0.893.

Therefore expect to lose {{{highlight(89 cents)}}} when you buy a lottery ticket!