What is pseudocode?
==> Pseudocode is a set of instructions or steps written in plain English language before we directly implement or write actual programming language code. It is a way of expressing a program or ideas or concept without worrying about the specific syntax rules. This is something we write that is not an actual code in any programming language, but if anyone read it, they can understand what is happening or what steps are being taken to execute a certain program.
Why should we use pseudocode?
==> Pseudocode helps us to focus on the problem rather than thinking about all those complex syntaxes, functions and other complicated rules. It essentially helps us to break large problems into smaller manageable problems. As a result, we can focus on one problem at a time and can anticipate future problems which may arise in future. Sometimes when we face any problem during code, we tend to jump straight into googling for a solution. There are ways of googling if we don't take time to write pseudocode we may not thinking through the whole process and details of the project. As a result, we may end up googling inefficiently.
How to write pseudocode?
==> There are no rules associated with writing pseudocode. It is just a list of simple instructions written in English. For example -
To make a phone call our pseudocode would be
1. Unlock the phone
2. Open contacts
3. Search for contact
4. Press the call option
5. Speak
6. End the call
That's how simple it is.
Top comments (0)