Lab 11, Part 3 -------------- This is the second version of the program that converts 'three four one' to 341. It was marked out of 4. It was a gift. I gave you the answer to the previous version in http://www.cs.ucc.ie/~dgb/courses/pwd/solutions/lab10.txt The new solution looks like this: Get the user's input (a string) Explode it into an array called $words $word_values = array('zero' => 0, 'one' => 1, 'two' => 2, ...); // NEW $answer = 0; $exp = count( $words ); foreach ( $words as $word ) { $num = $word_values[$num]; // NEW (replaces a massive if-statement) $count--; $answer += pow( 10, $exp ) * $num; } echo $answer; 1) Obviously, you scored 0 if yours didn't compile or if you still had the if-statement or if it gave wrong answers. 2) Most of you scored 4 out of 4. As I mentione dlast time, there is a solution that avoids count and pow - but since you were penalised (1 mark) last time for not finding that solution, I did not dock any marks this time. If you lost a mark, it was usually because of some especial inefficiency in your program. Lab 11, Part 4 -------------- This was the DNA program. It was marked out of 6. A solution was discussed in a lecture.