badhy.blogg.se

Writing program in machine language is
Writing program in machine language is




writing program in machine language is

Why do you think the instructions are ambiguous? This happens because instructions in figure 21 are still pretty ambiguous, which leaves room for confusion.įor example, when the recipe says " Beat the eggs, salt & water in a bowl" it doesn't specify the exact procedure to beat the eggs or the order in which we should follow the instruction. Figure 21: Recipe for Egg Omeletteĭepending on how well you understand the recipe and execute the instructions, you might still end up with completely different results than intended. You might question what a well-defined recipe or instruction means and answer that let's take the recipe for making an egg omelet shown in figure 21. Although the recipe has to be specifically well defined otherwise, the program will not be executed or will execute incorrectly in the case of computers. It is very much similar to the act of cooking by following a recipe. When a computer executes or performs a program, it follows its instructions in a predefined manner. In computers, these sets of instructions are simply referred to as a program.

writing program in machine language is

A computer program is a set of instructions to perform specific tasks.






Writing program in machine language is