Vivekanand Vellanki
0
There are many computer programming languages from assembly, C/Java, Python/Perl to Blockly. Assembly would be considered a low level languages. C/Java, Python/Perl and Blockly are increasingly higher level languages. What's the difference between the languages? Higher level languages make it easy to accomplish your task. For e.g, lets say you want to tell your robot to switch off the light in your room. In Blockly, you would say something like: Find the light switch and turn it off In Python/Perl, you would say something like: Look around the room to find all light switches. Turn off each switch one by one until the light is switched off. In C/Java or assembly there would be many more instructions. In C/Java, you would say something like: Turn your head slowly and identify small projections from the wall. Go to each projection and see if you find a switch (need to distinguish photo frames, or keys hung off walls). Turn the switch off to see if it has become dark. In assembly, you would have to tell the robot how to turn the head slowly and what small projections from the wall are. As another example, here's how you would find the reminder of 27 divided by 5 in assembly and C. In assembly, you would do repeated subtraction until you get a number lesser than 5. Here's how the instructions would look: Subtract 5 from 27 and remember this in a register called X. If X < 5; X is the reminder; else subtract 5 from X and remember this in register X. Continue this in a loop until done. In C, you would simply say: 27 % 5.
GenuineGrumpyCat
0
its correct