0% found this document useful (0 votes)
5 views

Computer

Uploaded by

Aastha Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Computer

Uploaded by

Aastha Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Introduction to Pseudocode

TABLE OF CONTENTS

01 02 03 04
Following a
Pseudocode- Input and output, pseudocode
More features of Pseudocode variables and
Features,purpose,Rul algorithm
es of Pseudocode assignment.
What is a pseudocode?
● A Pseudocode is a step-by-step description
of an algorithm in code like structure using
plain English text.
● Pseudo means ‘not real’ so this means
pseudocode isn’t the official code of
programming and is the simpler version.
● Pseudocode is halfway between a flowchart
design, or a series of steps written in
English, or a high level language.
Why do we use Pseudocode?
● Pseudocode is used to design programs
because anyone who can write in any
programming languages can write in
pseudocode.
● It is easier for programmers to write and
follow.
● Beginners get a great amount of help in
coding by using pseudocodes.
● People who use different programming
languages may find it easier to work
together if they are using pseudocodes.
● We can use pseudocode together with a
flowchart as well.
Rules/Features of Pseudocode
• It should be having a clear one starting point and one
ending point.
• Common words such as PRINT, WRITE, READ, or INPUT
should be used.
• Must flow in a logical order.
• It should depict the logical way of solving the problem.
• It should be neat and legible.
• Follow the sequence of tasks.
• Write a statement that determines the goal.
• Use if-else like used in the main code.
• Write start and beginning, end or stop at end.
• Some pseudocodes may output messages while some not.
More features of pseudocode

● Pseudocode is language independent,


which means any programmer can use
any programming language to create a
code.
● However, this cannot just be a
combination of words, since it consists of;
● Command words to perform tasks
● Selection statements just like high level
languages
● Mathematical operators, although
sometimes different symbols can be used.
INPUT AND OUTPUT
• In pseudocode, INPUT asks a question. OUTPUT
prints a message on screen.
• A simple program could be created to ask
someone their name and age, and to make a
comment based on these.
• Inputs a value,eg;
• Input variable
• Now, Identifiers are the names we give to a
variable, and we should not miss them.
• Output however comes in many forms in programs;
some use write, print etc. The format is output data.

Another example of
another
pseudocode.
Variable and assignment
● A variable is a named location on a
computer’s memory that can store one
item of data.
● Each variable has an identifier, or name.
● Eg;a variable identifier must be one word
without spaces,musn’t start with a symbol
and cannot be the reserved keyword of the
program and should be unique.
Conclusion
PSEUDOCODE
WHY WE USE
PSEUDOCODE,FEATURES AND RULES
OF PSEUDOCODE
OUTPUT AND INPUT OF
PSEUDOCODE,VARIABLES AND
ASSIGNMENT,KEYWORDS,ETC
Thank you!

You might also like