i) See my semi working code here. 2) Program flowchart here.
In summary, the applet generates a vector of random numbers between 0 and 1 and using those numbers draws a few geographical shapes on the screen that resemble a face (Chernoff Faces). The program asks the user to guess whether the face is "good" or "bad", based on values that are mapped into geographical shapes. The user has to either ACCEPT or REJECT the shown face and indicate their level of confidence about this decision. After answering the user receives feedback whether the decision was correct or not, the points are awarded for correct assessments and points are taken away if the assessment is incorrect. There are many rounds of this game, and the goal is to be able to improve ability to assess faces.
My major concern are the loops, the "Next" (face) button (to restart the loop). I have trouble in storing and recording the data, thus, I really appreciate your comments regarding any of these issues