2.2 Self-study and the feedback
There is an important question. How can students
get feedback for their solutions written on paper in
the Czech meta-language when studying at home?
There are a lot of tasks that we give our students to
solve. They solve not only the whole tasks but we
also let them complete prepared algorithms and
determine values of variables similarly as you can
see in the following examples.
Example 1 (single variables)
Complete the algorithm which calculates and
writes out the following value of sum:
If x
≤ y then it is the sum of numbers
x, x + 1, …, y, and if x > y then it is the sum of
numbers x, x - 1, …, y.
begin
read(x);
read(y);
sum := .....;
number := x;
if x ..... y then
Do'stlaringiz bilan baham: |