Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
5. Variables
1. From last time…
•
Libraries, Functions, Active Mode, Interaction!
•
Check the site for a list of inspiration sources!
•
We have a Teaching Assistant:!
! Yifan Wang, yifan@cise.ufl.edu!
! Office Hours: CSE309, 2:00pm–3:00pm
12. random() & casting
random(j)
// from 0 to j
random(j,k)
// from j to k
float r = random(24);
int r = random(24);
// needs to be cast!
int r = int(random(24));
// int() method
int r = (int) random(24); // Java cast
13. For next time…
•
Monday is Martin Luther King, Jr. Day!
•
Read Shiffman, p. 59–70 (Conditionals I)!
•
Project Proposals due on Wed, January 22
Quiz
•
Closed book, 25 minutes, good luck!