CS 111 - 9/25/14 Exam 1 - Next Thursday, 10/2/14, during Lecture Format - 20 multiple choice questions 3 points each 2 write code questions (turtle drawing) 20 points each Q. 21 (Writing inside of main) Q. 22 (Write a drawXXX method) public static void drawXXX ( Topics for the exam: variables and types assignment statement arithmetic operators: + - * / / % difference between floating point and integer division 7.4 / 2.1 ==> floating point division 7 / 2 ==> integer division 7.0 / 2 ==> floating point division since at least one operand is a floating point value string concatenation operator: + System.out.println ("The value is: " + 10 + 15); Operator precedence, associativity while loops relational operators: > < >= <= == != methods parameters Turtles creation of the turtle creation of the world/picture common methods used by the Turtle objects comon methods used by the world/picture use of Color with the turtle pens You can get 1% extra credit for your grade at the end of the semester by writing a multiple question in the proper discussion area in blackboard Next Topic Item Pictures: Chapters 4, 5, 6 Pictures Pixels (Picture Elements) 3 Colors are contained at each pixel red green blue Each color uses an integer value to specify the intensity of that color the value for the intensity range from 0 to 255 An 8 bit value (1 byte) can represent 256 different values