Lab 8, Part 1 ------------- This is the game with three dice, where you used three one-armed conditionals. It was marked out of 2. If you did not get 2 out of 2, here's possible reasons why... a) You used (int) or (float) incorrectly. There was only one statement that needed it: the one that gets the user's data. Depressingly, many of you omitted it, and many others of you peppered the rest of your program with (int)s. b) You did not echo the value of the dice - the lab sheet explicitly told you to do this. Or maybe when the user lost, you didn't echo the winnings (i.e. zero). c) You used if-else or you used && - but the lab sheet told you not to. The solution must use a nested-if. d) You did a lot of redundant work - a simpler, more efficient version was possible. In particular, many of you wrote extra if-statements to test (sometimes incorrectly) for the dice being not equal to each other. e) In a few cases, there were errors - a few were compile-time (in which case, you scored zero) or logic errors (in which case, you scored 0 or 1, depending on the severity of the error). E.g. if the user lost, some of you echoed the stake as if it were the winnings. Lab 8, Part 3 ------------- This is the one about arranging three numbers. It was marked out of 4. I tested your program on 13 different pieces of test data, as discussed in lectures. Even quite long solutions could score 3 out of 4, provided they got the right answer for all 13 tests. But if you got incorrect answers on the tests, you scored 0, 1 or 2, depending on how incorrect the program was. You also lost a mark if you failed to convert the input from strings to ints or floats. The only solution that could score 4 out of 4 was one like the one I showed in the lecture. Lab 8, Part 4 ------------- This was the program about voting rights. It was marked out of 4. The marking scheme and a couple of solutions were discussed in lectures.