In Computer Science terms, your goal is to write an algorithm . They are step by step descriptions for solving the problem of preparing some kind of food. In other words, how much does the person already know and how much detail must I provide. You should provide all possible details and you should do so in as simple a language as possible. . The same is true for computer based algorithms - algorithms that will be turned into code in some programming language.
Computers assume nothing.
They do not perform any action they are not explicitly told to perform. For that reason algorithms should be written in simple, concise English. Think of yourself as writing instructions for a ten year old who can read, knows the basics of arithmetic and can follow instructions. B. Your First Algorithm Let's start by writing the algorithm for the sixth program from chapter 2 - the program to calculate the salary for one employee. Yes, this is a simple program and yes, we are working backwards by having, in fact, already written the code, but let's pretend that the program is more complex and that we have not yet written the code.