1. How to calculate the execution time of an instruction x=3*a?  (Don’t write code to find out)2. Write pseudo code to show your algorithm.
 
思路: 保存下个节点的指针了;
      满足条件时要先把前一个和后一个存下来从要删处断开,再把这前一个后一个连起来;
3a. Ball and buttons: State machine table 
 
 
State \ Event Click Play  Click Pause  Reach to the end    
Init      
Play    
Pause  
3b. OO class design of “Ball and buttons”
a) How many classes? What are the names of classes?
b) What are the key attributes and methods?
c) Draw the uml class diagram. (bonus,选做题)