19 questions
| Step 1 | Let \(N = 0 , T = 0\) and \(S = 0\). | |||
| Step 2 |
| |||
| Step 3 | Increase \(N\) by 1 , increase \(T\) by \(X\) and increase \(S\) by \(X ^ { 2 }\). | |||
| Step 4 | If there are still numbers in the list then go back to Step 2. Otherwise go to Step 5. | |||
| Step 5 |
| |||
| Step 6 | Output \(M\) and \(D\). |
| Step 1 | Input A |
| Step 2 | Input B , where \(\mathrm { B } > \mathrm { A }\) |
| Step 3 | Let \(\mathrm { R } = \mathrm { A } + \left( \frac { \sqrt { 5 } - 1 } { 2 } \right) \times ( \mathrm { B } - \mathrm { A } )\) |
| Step 4 | Let \(\mathrm { L } = \mathrm { A } + \mathrm { B } - \mathrm { R }\) |
| Step 5 | Find \(f ( \mathrm {~L} )\) and \(f ( \mathrm { R } )\) |
| Step 6 | If \(\mathrm { f } ( \mathrm { L } ) \leqslant \mathrm { f } ( \mathrm { R } )\) then let \(\mathrm { B } = \mathrm { R }\) and go to Step 8 |
| Step 7 | If \(\mathrm { f } ( \mathrm { L } ) > \mathrm { f } ( \mathrm { R } )\) then let \(\mathrm { A } = \mathrm { L }\) and go to Step 8 |
| Step 8 | If \(\mathrm { B } - \mathrm { A } < 0.1\) then go to step 10 |
| Step 9 | Go to step 3 |
| Step 10 | Print \(\frac { ( \mathrm { A } + \mathrm { B } ) } { 2 }\) and stop |
| Item | A | B | C | D | E | F |
| Weight \(( \mathrm { kg } )\) | 2 | 1 | 6 | 3 | 3 | 5 |
| Step 1 | Set \(i = 1\) |
| Step 2 | Input \(m _ { i }\) and \(c _ { i }\) |
| Step 3 | If \(i = 3\) then go to Step 6 |
| Step 4 | Set \(i = i + 1\) |
| Step 5 | Go to Step 2 |
| Step 6 | Set \(j = 1\) |
| Step 7 | Set \(a = j + 1\) |
| Step 8 | If \(a > 3\) then set \(a = a - 3\) |
| Step 9 | Set \(b = j + 2\) |
| Step 10 | If \(b > 3\) then set \(b = b - 3\) |
| Step 11 | Set \(d _ { j } = m _ { b } - m _ { a }\) |
| Step 12 | If \(d _ { j } = 0\) then go to Step 20 |
| Step 13 | Set \(x _ { j } = \frac { c _ { a } - c _ { b } } { d _ { j } }\) |
| Step 14 | Set \(y _ { j } = m _ { a } \times x _ { j } + c _ { a }\) |
| Step 15 | Record \(\left( x _ { j } , y _ { j } \right)\) in the print area |
| Step 16 | If \(j = 3\) then go to Step 19 |
| Step 17 | Set \(j = j + 1\) |
| Step 18 | Go to Step 7 |
| Step 19 | Stop |
| Step 20 | Record "parallel" in the print area |
| Step 21 | Go to Step 16 |
| Stage 5 | (5;0) to (4;0): 6 plants (5;0) to (4;1): 8 plants | |||
| Stage 4 | (4;0) to (3;0): 5 plants (4;0) to (3;1): 8 plants | (4;1) to (3;0): 7 plants (4;1) to (3;2): 5 plants | ||
| Stage 3 | ( \(3 ; 0\) ) to ( \(2 ; 1\) ): 8 plants (3;0) to (2;3): 6 plants | (3;1) to (2;0): 7 plants \(( 3 ; 1 )\) to (2;2): 6 plants | (3;2) to (2;0): 7 plants (3;2) to (2;2): 6 plants ( \(3 ; 2\) ) to ( \(2 ; 3\) ): 8 plants | |
| Stage 2 | (2; 0) to (1; 0): 4 plants ( \(2 ; 0\) ) to ( \(1 ; 1\) ): 5 plants | (2; 1) to (1; 0): 6 plants | (2;2) to (1;1): 7 plants | (2;3) to (1;0): 5 plants (2;3) to (1;1): 6 plants |
| Stage 1 | (1;0) to (0;0): 4 plants | (1; 1) to (0;0): 4 plants |
| Activity | Duration | Immediate predecessors |
| \(A\) | 8 | - |
| \(B\) | 9 | - |
| C | 7 | - |
| D | 5 | \(A\) |
| E | 6 | \(A\) |
| \(F\) | 4 | \(B\) |
| \(G\) | 5 | B |
| \(H\) | 6 | \(B\) |
| \(I\) | 10 | C |
| \(J\) | 9 | \(C\) |
| \(K\) | 6 | \(C\) |
| \(L\) | 7 | D, F, I |
| \(M\) | 6 | \(E , G , J\) |
| \(N\) | 8 | \(H\), \(K\) |
| \multirow{2}{*}{} | Finishing point | |||||||||||
| B | C | D | E | \(F\) | G | \(H\) | \(I\) | \(J\) | \(K\) | \(L\) | ||
| \multirow{11}{*}{Starting point} | A | 5 | 4.5 | 13 | 10 | |||||||
| B | 8 | 11 | 4 | |||||||||
| C | 5 | 10.5 | ||||||||||
| D | 9 | 6 | ||||||||||
| E | 12 | 7 | 15 | |||||||||
| \(F\) | 5 | 2 | 2 | |||||||||
| G | 8 | 9 | 3 | |||||||||
| \(H\) | 10 | 2 | 9 | |||||||||
| I | 5 | |||||||||||
| J | 6 | |||||||||||
| K | 10 | |||||||||||