Computer Science, asked by yadwinderbawa001, 7 months ago

Please help me
1.)A pseudocode must start with the keyword________.​

Answers

Answered by dhruvsharma1725
4

Answer:

pseudopodia is start with this keyword

Answered by Anonymous
3

Answer:

A prototype is an early sample, model or release of a product created with the intention of concept testing and for learning purposes. They help us to learn without fully implementing our solutions. When developing user interfaces for our applications, we have several prototypes before the final interface. Some examples of these are wire-frames, graphical designs and mock-ups. The same applies to writing technical code. Directly writing code for complex purposes might result in time wastage. The causes of this range from improper algorithms to ambiguous program flow. To prevent this, we can use Pseudocode.

Want to read this story later? Save it in Journal.

What is Pseudocode?

Pseudocode is an informal high-level description of a computer program or algorithm. It is written in symbolic code which must be translated into a programming language before it can be executed.

Are there alternatives to Pseudocode?

There are some alternatives to Pseudocode. Some of them are Flowcharts, drakon-charts and Unified Modified Language (UML) charts. They will serve the purpose but they comparatively require more resources.

PART 2: STATEMENTS

A statement is defined as an instruction that directs the computer to perform a specific action. In writing pseudocode, we will refer to singular instructions as statements.

When writing pseudocode, we assume that the order of execution of the statements is from top to bottom. This changes when using control structures, functions and exception handling.

Mathematical operations

Mathematical operations are integral to solution development. They allow us to manipulate the values we have stored. Here are common mathematical symbols:

Assignment: ← or :=

   Example: c ← 2πr, c := 2πr  

Comparison: =, ≠, <, >, ≤, ≥

Arithmetic: +, −, ×, /, mod

Floor/ceiling: ⌊, ⌋, ⌈, ⌉

a ←    ⌊b⌋    + ⌈c⌉

Logical: and, or

Sums, products: Σ Π

   Example: h ←    Σa∈A    1/a

Keywords

A keyword is a word that is reserved by a program because the word has a special meaning. Keywords can be commands or parameters. Every programming language has its own keywords (reserved words). Keywords cannot be used as variable names.

In Pseudocode, they are used to indicate common input-output and processing operations. They are written fully in uppercase.

START: This is the start of your pseudocode.

INPUT: This is data retrieved from the user through typing or through an input device.

READ / GET: This is input used when reading data from a data file.

PRINT, DISPLAY, SHOW: This will show your output to a screen or the relevant output device.

COMPUTE, CALCULATE, DETERMINE: This is used to calculate the result of an expression.

SET, INIT: To initialize values

INCREMENT, BUMP: To increase the value of a variable

DECREMENT: To reduce the value of a variable

PART 3: CONDITIONALS

During algorithm development, we need statements which evaluate expressions and execute instructions depending on whether the expression evaluated to True or False. Here are some common conditions used in Pseudocode:

Explanation:

Similar questions