Merge lp:~pyotago/practical-programming/iain into lp:practical-programming

Proposed by Iain Hewson
Status: Merged
Merged at revision: 48
Proposed branch: lp:~pyotago/practical-programming/iain
Merge into: lp:practical-programming
Diff against target: 124 lines (+99/-4)
3 files modified
case_study_catch2.tex (+5/-4)
prac-instructions/instructions-150a.org (+47/-0)
prac-instructions/instructions-150b.org (+47/-0)
To merge this branch: bzr merge lp:~pyotago/practical-programming/iain
Reviewer Review Type Date Requested Status
Brendan McCane Pending
Review via email: mp+105289@code.launchpad.net

Description of the change

Tidying up an extra long line, and adding prac test instructions (as separate documents)

To post a comment you must log in.
Revision history for this message
Brendan McCane (mccane) wrote :
Download full text (6.5 KiB)

Done.

On May 10, 2012, at 1:03 PM, Iain Hewson wrote:

> Iain Hewson has proposed merging lp:~pyotago/practical-programming/iain into lp:practical-programming.
>
> Requested reviews:
> Brendan McCane (mccane)
>
> For more details, see:
> https://code.launchpad.net/~pyotago/practical-programming/iain/+merge/105289
>
> Tidying up an extra long line, and adding prac test instructions (as separate documents)
> --
> https://code.launchpad.net/~pyotago/practical-programming/iain/+merge/105289
> You are requested to review the proposed merge of lp:~pyotago/practical-programming/iain into lp:practical-programming.
> === modified file 'case_study_catch2.tex'
> --- case_study_catch2.tex 2011-02-01 04:57:31 +0000
> +++ case_study_catch2.tex 2012-05-10 01:02:20 +0000
> @@ -180,10 +180,11 @@
> it works. Rather than typing it all in one go, follow the incremental
> development scheme I used in lectures. That way, you will have less
> debugging to do at each stage.
> -\item Move the code that calculates the distance from the ball to the
> -mitt into a function called \pythoninline{distance\_circles}. Do not
> -use any class variables in the function (only parameters). Include
> -several doctest tests to ensure the function is correct.
> +\item \begin{sloppypar}Move the code that calculates the distance from
> + the ball to the mitt into a function called
> + \pythoninline{distance\_circles}. Do not use any class variables in
> + the function (only parameters). Include several doctest tests to
> + ensure the function is correct.\end{sloppypar}
> \item At the moment, the program will keep going forever, or until you
> close the window. Add code that will stop the program when either the
> player or computer score reaches 10. Announce the winner using a
>
> === added directory 'prac-instructions'
> === added file 'prac-instructions/instructions-150a.org'
> --- prac-instructions/instructions-150a.org 1970-01-01 00:00:00 +0000
> +++ prac-instructions/instructions-150a.org 2012-05-10 01:02:20 +0000
> @@ -0,0 +1,47 @@
> +#+title: COMP150 Mastery Test 1
> +#+author: Lab 11
> +#+date: course weight 15\%
> +
> +#+options: toc:nil num:nil
> +
> +#+latex_header: \parindent = 0mm
> +#+latex_header: \parskip = 3mm
> +#+latex_header: \topmargin = -3cm
> +#+latex_header: \textheight = 26.5cm
> +#+latex_header: \pagestyle{empty}
> +
> +*
> +
> +** Place your Student ID Card on the desk beside you
> +
> +There are four parts to complete for this lab. Part 1 is worth 3%,
> +and parts 2-4 are worth 4%, giving a total of 15% for the entire
> +lab. The test files should open automatically once you have entered
> +and confirmed your University usercode. If you need to open them
> +again you can find them on your Desktop in a folder called
> +=Lab-Test-1=. You must add code to make the doctests pass for
> +each of the four files. If you are unable to complete one of the
> +parts you may still continue on and attempt to complete the later
> +parts. A demonstrator will mark off each part when you have completed
> +as much of the test as you are able.
> +
> +** Turn off all personal electronic devices (this is an exam)
> +
> +In the previous labs you could complete...

Read more...

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'case_study_catch2.tex'
2--- case_study_catch2.tex 2011-02-01 04:57:31 +0000
3+++ case_study_catch2.tex 2012-05-10 01:02:20 +0000
4@@ -180,10 +180,11 @@
5 it works. Rather than typing it all in one go, follow the incremental
6 development scheme I used in lectures. That way, you will have less
7 debugging to do at each stage.
8-\item Move the code that calculates the distance from the ball to the
9-mitt into a function called \pythoninline{distance\_circles}. Do not
10-use any class variables in the function (only parameters). Include
11-several doctest tests to ensure the function is correct.
12+\item \begin{sloppypar}Move the code that calculates the distance from
13+ the ball to the mitt into a function called
14+ \pythoninline{distance\_circles}. Do not use any class variables in
15+ the function (only parameters). Include several doctest tests to
16+ ensure the function is correct.\end{sloppypar}
17 \item At the moment, the program will keep going forever, or until you
18 close the window. Add code that will stop the program when either the
19 player or computer score reaches 10. Announce the winner using a
20
21=== added directory 'prac-instructions'
22=== added file 'prac-instructions/instructions-150a.org'
23--- prac-instructions/instructions-150a.org 1970-01-01 00:00:00 +0000
24+++ prac-instructions/instructions-150a.org 2012-05-10 01:02:20 +0000
25@@ -0,0 +1,47 @@
26+#+title: COMP150 Mastery Test 1
27+#+author: Lab 11
28+#+date: course weight 15\%
29+
30+#+options: toc:nil num:nil
31+
32+#+latex_header: \parindent = 0mm
33+#+latex_header: \parskip = 3mm
34+#+latex_header: \topmargin = -3cm
35+#+latex_header: \textheight = 26.5cm
36+#+latex_header: \pagestyle{empty}
37+
38+*
39+
40+** Place your Student ID Card on the desk beside you
41+
42+There are four parts to complete for this lab. Part 1 is worth 3%,
43+and parts 2-4 are worth 4%, giving a total of 15% for the entire
44+lab. The test files should open automatically once you have entered
45+and confirmed your University usercode. If you need to open them
46+again you can find them on your Desktop in a folder called
47+=Lab-Test-1=. You must add code to make the doctests pass for
48+each of the four files. If you are unable to complete one of the
49+parts you may still continue on and attempt to complete the later
50+parts. A demonstrator will mark off each part when you have completed
51+as much of the test as you are able.
52+
53+** Turn off all personal electronic devices (this is an exam)
54+
55+In the previous labs you could complete the work using whatever
56+resources you wished to, including help from demonstrators, lecture
57+notes, previous work, online resources. In this lab you must complete
58+the task during a 90-minute time slot, with minimal resources at your
59+disposal. Using only IDLE and the four provided files,
60+you must write all of the code needed to pass the given tests without
61+any other help.
62+
63+ - You are not permitted to access your home directory, or any other
64+ files or computers, nor may you use the Internet during this lab.
65+
66+ - In all the following tests it is necessary to return a
67+ value. Using the /print/ statement is not allowed.
68+
69+ - When you are ready to be marked just use democall as usual.
70+
71+ - Make sure you get marked off by a demonstrator even before you
72+ leave, even if you don't get any of the test files working.
73
74=== added file 'prac-instructions/instructions-150b.org'
75--- prac-instructions/instructions-150b.org 1970-01-01 00:00:00 +0000
76+++ prac-instructions/instructions-150b.org 2012-05-10 01:02:20 +0000
77@@ -0,0 +1,47 @@
78+#+title: COMP150 Mastery Test 2
79+#+author: Lab 12
80+#+date: course weight 15\%
81+
82+#+options: toc:nil num:nil
83+
84+#+latex_header: \parindent = 0mm
85+#+latex_header: \parskip = 3mm
86+#+latex_header: \topmargin = -3cm
87+#+latex_header: \textheight = 26.5cm
88+#+latex_header: \pagestyle{empty}
89+
90+*
91+
92+** Place your Student ID Card on the desk beside you
93+
94+There are four parts to complete for this lab. Part 1 is worth 3%,
95+and parts 2-4 are worth 4%, giving a total of 15% for the entire
96+lab. The test files should open automatically once you have entered
97+and confirmed your University usercode. If you need to open them
98+again you can find them on your Desktop in a folder called
99+=Lab-Test-2=. You must add code to make the doctests pass for
100+each of the four files. If you are unable to complete one of the
101+parts you may still continue on and attempt to complete the later
102+parts. A demonstrator will mark off each part when you have completed
103+as much of the test as you are able.
104+
105+** Turn off all personal electronic devices (this is an exam)
106+
107+In the previous labs you could complete the work using whatever
108+resources you wished to, including help from demonstrators, lecture
109+notes, previous work, online resources. In this lab you must complete
110+the task during a 90-minute time slot, with minimal resources at your
111+disposal. Using only IDLE and the four provided files,
112+you must write all of the code needed to pass the given tests without
113+any other help.
114+
115+ - You are not permitted to access your home directory, or any other
116+ files or computers, nor may you use the Internet during this lab.
117+
118+ - In all the following tests it is necessary to return a
119+ value. Using the /print/ statement is not allowed.
120+
121+ - When you are ready to be marked just use democall as usual.
122+
123+ - Make sure you get marked off by a demonstrator even before you
124+ leave, even if you don't get any of the test files working.

Subscribers

People subscribed via source and target branches

to all changes: