Предмет: Информатика, автор: dasha868

составить линейный алгоритмчертёжника , который изображает звезду

Ответы

Автор ответа: 67zadavayka
0
Аааа сложна:DDDDDDDDDDDDD

Автор ответа: dasha868
0
Пожалуйста
Автор ответа: 67zadavayka
0
я хз так бы ответил)
Автор ответа: A1dar
0
Алгоритм такой: перемещаем чертежника по координатам (-9;2), (-3;3), (0;8), (3;3), (9;2), (5;-3), (6;-9), (0;-7), (-6;-9), (-5;-3), (-9;2) и рисуем звезду.
Программа на PascalABC.NET:

uses DrawMan;
const zvezda: array[1..10, 1..2] of integer = ((7, 13), (10, 18), (13, 13), (19, 12), (15, 7), (16, 1), (10, 3), (4, 1), (5, 7), (1, 12));
begin
  Field(20, 20);
  ToPoint(1, 12);
  PenDown;
  for var i := 1 to 10 do
    ToPoint(zvezda[i, 1], zvezda[i, 2]);
end.
Похожие вопросы
Предмет: Английский язык, автор: 47474664
You should be very careful on the night of October 31. This is the night when witches and ghosts come out! Halloween is the most famous of witches' festivals. They ride on brooms through the midnight air to meet with the Devil. Black cats, their best friends, usually accompany them.

Poor cold ghosts come out of the lonely woods and fields and warm themselves in people's houses. Ghosts and witches are not the only ones who come out at Halloween. From their hiding places come hundreds of demons, skeletons, goblins and other supernatural creatures.

Children in the US, Great Britain and Ireland like Halloween very much. In the weeks before October 31, they decorate the windows of their houses and schools with pictures of witches, black cats and bats. They make lanterns out of pumpkins. They are called jack-o'-lanterns. Black and orange are traditional Halloween colours.
On October 31, children dress up as ghosts and witches, skeletons and Draculas, and have noisy parties.

Sometimes they go to the people's houses and ring at the door, shouting "Trick or treat!" The person who opens the door must give the children a treat — some sweets or cookies. If not, the children play a trick on them. For example, they can throw flour at the window or draw a funny picture on the door. Halloween parties are great fun.

Write true, false, doesn’t say:

1. The writer says that witches ride on brooms through the midnight air to meet with the Devil.



2. Black and red are traditional Halloween colours.



3. People spend a lot of money on this holiday.