Creating a Power Point Presentation Jason Flear November 29, 2004
Agenda: Audience information Audience information Room information Room information Using a picture Using a picture Some information on java Some information on java How to use the method math.random(); How to use the method math.random(); A billiard ball graphic A billiard ball graphic That moves! That moves! (I hope) (I hope)
Audience Information A group of my friends A group of my friends Attending only for interests sake Attending only for interests sake Largely beginners Largely beginners Ages 18 – 22 Ages 18 – 22 Both males and females Both males and females
Room Information It will have a theatre shape: It will have a theatre shape: There will be 25 audience members There will be 25 audience members They will sit in semi-circles They will sit in semi-circles The screens at the flat end, The screens at the flat end, with the projector in the middle
Working With Pictures Raph & Mike! Raph & Mike! Leo & Donnie! The Ninja Turtles:
How to use Math.random(); math.random(); In order to make it generate an integer between 1 and 100 we change it to: int j = (int)(Math.random() * ); A basic method in Java that returns A double value between 0.0 and 1.0 A basic method in Java that returns A double value between 0.0 and 1.0 This assigns the integer j to the value retuned by Math.random This assigns the integer j to the value retuned by Math.random This turns the numbers from decimals into whole numbers (1-99) This turns the numbers from decimals into whole numbers (1-99) Needed so that it goes from 1 to 100, not 0 to 99!
Bonus: a Billiard Ball