answersLogoWhite

0

PSEUDOCODE STANDARD:

Pseudocode is a kind of structured English for describing algorithms. It allows the designer to focus on the logic of the algorithm without being distracted by details of language syntax. At the same time, the pseudocode needs to be complete. It describe the entire logic of the algorithm so that implementation becomes a rote mechanical task of translating line by line into source code.

In general the vocabulary used in the pseudocode should be the vocabulary of the problem domain, not of the implementation domain. The pseudocode is a narrative for someone who knows the requirements (problem domain) and is trying to learn how the solution is organized. E.g.,Extract the next word from the line (good)

set word to get next token (poor) Append the file extension to the name (good)

name = name + extension (poor) FOR all the characters in the name (good)

FOR character = first to last (ok) FORM SHOAIB SIDHU

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

Difference between pseudocode and structured English?

structured English resembles spoken Englishwhere as pseudocode resembles programming languageWhat_are_the_differences_between_structured_English_and_pseudo_code


What is a computer program written in English language called?

Pseudocode. However, pseudocode is not a programming language as such. It is a language that a programmer uses specifically to convey the concept of a specific algorithm to other programmers. The language is such that any programmer can easily translate the algorithm into their preferred language. Furthermore, pseudocode does not have to be written in English, it can be written in any language. However, English is the most widely-spoken language within the programming community and is therefore the most prevalent language used in programming.


What has the author T E Bailey written?

T. E. Bailey has written: 'Program design with pseudocode' -- subject(s): Programming, Electronic digital computers, Electronic digitalcomputer, Pseudocode (Computer program language)


Which piece of pseudocode represents incrementing the loop control called rep?

There is no standard for pseudocode. Pseudocode is generally expected to be intuitively understood by its target audience, but it doesn't need similarity with natural language or familiar programming language. Therefore, all the following are pseudocode examples to increment a variable called rep: rep = rep + 1 add 1 to rep increment rep ++rep next rep


What are sentences that appear to be written in a programming language but do not actually follow the structure of the language?

Pseudocode. It is a cross between English and a programming language, designed to be quickly written and understood without worrying about syntax.


Which piece of pseudocode represents incrementing the loop control variable called rep?

There is no standard for pseudocode. Pseudocode is generally expected to be intuitively understood by its target audience, but it doesn't need similarity with natural language or familiar programming language. Therefore, all the following are pseudocode examples to increment a variable called rep: rep = rep + 1 add 1 to rep increment rep ++rep next rep


How to create pseudocode effectively for a programming problem?

To create effective pseudocode for a programming problem, start by clearly defining the problem and breaking it down into smaller steps. Use simple and clear language to describe each step in detail, focusing on the logic and algorithms needed to solve the problem. Make sure to use proper indentation and formatting to improve readability. Test your pseudocode by walking through it manually to ensure it accurately solves the problem before translating it into actual code.


Is pseudocode a combination of programming language and machine code?

No. Pseudocode is not used to write complete programs; rather, it is an overview of what you want to achieve. For example, the following pseudocode is for a program to print a list of square roots: for i = 1 to 10 show i, i*i A specific programming language may not have a "show" command, and the structure of the "for" loop might be different; additional setup and cleanup commands may also be required in a real computer program; the purpose of this pseudoce is merely to explain, to a human, what you want to achieve. The real code, with more detail, will have to be added later.


What is the difference between an algorithm and pseusodocode?

Pseudocode is one method of describing an algorithm. Other methods use diagrams, prose, or maybe even regular programming languages. An algorithm, on the other hand, is a method, a recipe, of solving a particular problem or group of related problems.


How to write pseudocode effectively for a programming problem?

To write pseudocode effectively for a programming problem, start by clearly defining the problem and breaking it down into smaller steps. Use simple and clear language to describe each step, focusing on the logic and structure of the solution rather than specific syntax. Make sure to use indentation and proper formatting to improve readability. Test your pseudocode by walking through it manually to ensure it accurately solves the problem before translating it into actual code.


What is the structure of a pseudocode?

Pseudocode is a high-level description of a computer algorithm that uses a mixture of natural language and code-like syntax. It is not strict like a programming language and focuses on expressing the logic of the algorithm in a way that can be easily understood by humans. Pseudocode typically includes elements like variables, loops, conditionals, and functions, but does not follow a specific syntax or set of rules.


What are the advantages of pseudocode?

Pseudo-code allows for an intermediate step between a human language description of an algorithm and a programming language description of the algorithm. It is often a good way for non-programmers to understand the programming process.