Выполнен
Заказ
3285883
Раздел
Программирование
Предмет
Тип работы
Антиплагиат
Не указан
Срок сдачи
3 Июн 2020 в 17:00
Цена
Договорная цена
Блокировка
10 дней
Размещен
1 Июн 2020 в 20:37
Просмотров
173
Описание работы

Task 1: polymorphism


A robot should be controlled remotely. Control is quite limited, the robot can move one meter forward, rotate 90º clockwise, and output a status report. The robot moves over a two-dimensional grid. It starts at position (0.0).


The robot is controlled via a MissionControl class. The program should be used as follows, for example


MissionControl control = MissionControl.create ();

control.print ();

// output: Robot is facing north at (0,0)

control.step ();

control.turn ();

control.step ();

control.step ();

control.step ();

control.step ();

control.print ();

// Edition: Robot is facing east at (4.1)


However, there are some boundary conditions. On the one hand, the implementation must be completely hidden behind MissionControl and on the other hand, you may only write linear code, i.e. all forms of control structures (if, switch, while, ...) may not be used.

Нужна такая же работа?
  • Разместите заказ
  • Выберите исполнителя
  • Получите результат
Гарантия на работу1 год
Средний балл4.52
СтоимостьНазначаете сами
ЭкспертВыбираете сами
Уникальность работыот 70%
Время выполнения заказа:
3 часа 48 минут
Выполнен в срок
Отзыв о выполненном заказе
Предыдущий заказ
Нужна аналогичная работа?
Оформи быстрый заказ и узнай стоимость
Гарантированные бесплатные доработки в течение 1 года
Быстрое выполнение от 2 часов
Проверка работы на плагиат
Прямой эфир