vendredi 24 janvier 2020

I am having trouble trying to solve a moving Car coordinate problem in C#, but java will be fine for me to understand as well [closed]

Here is a screenshot of what I have

I was given this problem, and have so far started trying to solve it, however I am stuck as to how to go about solving it, and Applying Design Pattern concepts to it. The problem wants user input of F,F,R,L,F,R,F to result in the output of (1,3)E coordinates. The picture below shows a graph table of coordinates, and based on the console input for the vehicle, it will either move forward, right, or left, which will change its coordinates. The screenshot also has conditions as to how the input should be validated.

Here is the Problem

Aucun commentaire:

Enregistrer un commentaire