Вопрос задан 27.02.2019 в 07:03. Предмет Информатика. Спрашивает Прокопова Лера.

Чертѐжнику был дан для исполнения следующий алгоритм:Повтори 2 разКоманда 1 Сместиться на (1, 3)

Сместиться на (1, -2)КонецСместиться на (2, 6) После выполнения алгоритма Чертѐжник вернулся в исходную точку.Какую команду надо поставить вместо команды Команда 1?2) Сместиться на (-6, -8); 3) Сместиться на (3, 4);4) Сместиться на (-4, -7);5) Сместиться на (-3, -4).
0 0
Перейти к ответам

Ответы на вопрос

Внимание! Ответы на вопросы дают живые люди. Они могут содержать ошибочную информацию, заблуждения, а также ответы могут быть сгенерированы нейросетями. Будьте внимательны. Если вы уверены, что ответ неверный, нажмите кнопку "Пожаловаться" под ответом.
Отвечает Айдар Анель.
Смотри, начало отсчета: 0;0
 Сместиться на (1, 3) - оказываемся в (1, 3) 
Сместиться на (1, -2) - прибавляем к  (1, 3) + (1, -2) = (2,1)
кц, в условии сказано что это надо повторить 2раза значит умножаем на 2 = (4,2)
Сместиться на (2, 6) - прибавляем (2, 6) = (6,8)
(6,8) это точка в которой мы окажемся в конце программы, теперь нам надо чтобы чертежник перешёл в начальную точку (0 0), чтобы сделать это мы должны от (6,8)
отнять (6,8), другими словами к (6,8) прибавить (-6,-8).
Ответ: (-6,-8) - это первый вариант. В ответе пишем 1


0 0
Отвечает нейросеть ChatGpt. Будьте внимательны, ответы нейросети могут содержать ошибочные или выдуманные данные.

Understanding the Problem

The problem states that a draftsman was given an algorithm to follow. The algorithm consists of a repetition of two commands, followed by a final command. The draftsman is required to return to the starting point after executing the algorithm. The question asks which command should replace "Command 1" in order to achieve this.

Analyzing the Algorithm

Let's break down the given algorithm step by step:

1. Repeat 2 times: - Command 1 - Move to (1, 3) - Move to (1, -2) 2. End 3. Move to (2, 6)

The draftsman is required to return to the starting point after executing the algorithm. To achieve this, we need to find the command that will bring the draftsman back to the starting point.

Finding the Correct Command

To find the correct command, we need to analyze the movements made by the draftsman in the algorithm.

1. The draftsman starts at an unknown point. 2. The draftsman repeats the following steps twice: - Command 1 (unknown) - Move to (1, 3) - Move to (1, -2) 3. The draftsman then moves to (2, 6).

Since the draftsman returns to the starting point, we can conclude that the net movement in the x-direction and y-direction must be zero.

Let's analyze the movements in the x-direction and y-direction:

- In the x-direction, the draftsman moves 2 units to the right (2) and 2 units to the left (-2), resulting in a net movement of 0. - In the y-direction, the draftsman moves 3 units up (3) and 2 units down (-2), resulting in a net movement of 1.

To bring the draftsman back to the starting point, we need to find a command that will move the draftsman 1 unit down in the y-direction.

Selecting the Correct Command

Based on the analysis, the correct command to replace "Command 1" is "Move to (0, -1)". This command will move the draftsman 1 unit down in the y-direction, compensating for the net movement in the algorithm and bringing the draftsman back to the starting point.

Conclusion

To ensure that the draftsman returns to the starting point after executing the given algorithm, the command "Command 1" should be replaced with "Move to (0, -1)".

0 0

Топ вопросов за вчера в категории Информатика

Последние заданные вопросы в категории Информатика

Задать вопрос