Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that assigns a road to a robot on Mars. After the reception of the message, the robot prints each mouvement done from

image text in transcribed

Write a program that assigns a road to a robot on Mars. After the reception of the message, the robot prints each mouvement done from the point (0,0) to confirm that the instructions were well executed. The plan below shows a road example to follow while each arrow represents a distance of 1 on the X or Y axes.

Example: The program must show:

What are the instructions ? AAADADAAAGAGAAAAAAGAAADA (1,0) (2,0) (3,0) (3,-1) ...

** Legend for the instructions: A=Move forward D=Right turn G=Left turn

crire un programme qui assigne un chemin un robot situ sur Shalbatana Vallis, une valle la surface de Mars. Aprs la rception du message, le robot imprime dans la console chaque dplacement effectu depuis le point (0,0) pour confirmer que les instructions ont bien t excutes. Le plan suivant indique un exemple de chemin suivre si chaque flche reprsente une distance de 1 sur l'axe des X ou des Y. T ( Dans la console, votre programme devrait donner : Quelles sont les directives : AAADADAAAGAGAAAAAAGAAADA (1,0) (2,0) (3,0) (3,-1) Lgende : A : avancer, D : rotation vers la droite, G : rotation vers la gauche

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions