Learn to program: Directions

Comments · 588 Views

Imagine having no navigation system and no internet

Learn to program: Directions

Imagine having no navigation system and no internet. I know, complicated, but doable. A good friend wants to visit you. He's standing at the train station, and he's asking you for directions in text form on how to get to your house.

With the difficulty of the fact that he basically only understands 3 instructions - https://domyhomework.club/ . Turn left, turn right, and walk forward. Since he doesn't have a computer, you have to mail it to him. That is, if there is a mistake, it will not get to your house. Now it's your turn, you write the directions and mail them to him.

He gets off the train and has your route description in his hand.

Do you turn left or do you turn right?
How much further ahead?
You have to figure it out and even test it all out ahead of time, otherwise your visit will never arrive.

Your colleague sounds a little "silly" here, but the fact that your computer works the same way. Nevertheless, it works so fast it seems to be "smart".

When you program, you write these exact instructions or sequences of commands.

Your computer dumbly runs on this dumbly, and if it gets stuck somewhere, you have to stop the program and see where it happened -https://domyhomework.club/computer-science-homework/ . With your buddy it would be a tremendous effort, on a computer you can make such changes within seconds if you find an error.

Basic element: commands - https://domyhomework.club/sql-homework/ . Your computer basically processes one command after another. In programming languages, it is a cool feature because you can combine several commands into new commands. This makes your work easier.

Read also:

What is and what does Javascript actually do?

Equations, solving

Brownian motion

Emergence of Conservatism

Javascript What is it used for?