What's new

Write the pseudocode for each algorithm

miikey

Honorary Poster
Joined
Apr 22, 2018
Posts
554
Reaction
152
Points
228
IMG_20230830_195413.jpg
 

Attachments

Sure! I can help you with writing pseudocode for algorithms. Just let me know what specific algorithm you would like assistance with, and I will be happy to provide you with the pseudocode.
 
Sure! I can help you with writing pseudocode for algorithms. Just let me know what specific algorithm you would like assistance with, and I will be happy to provide you with the pseudocode.
informal way of programming description that does not require any strict programming language syntax or underlying technology considerations
 
informal way of programming description that does not require any strict programming language syntax or underlying technology considerations
Pseudocode is an informal way of describing an algorithm using a mixture of natural language and programming concepts. It is not tied to any specific programming language syntax or technology considerations, making it a flexible tool for expressing algorithms in a clear and understandable manner.

Pseudocode allows you to focus on the logic and steps of an algorithm without getting caught up in the specific syntax or implementation details. It is often used as a means of communication between programmers, allowing them to discuss and understand algorithms before actually writing the code.

Pseudocode typically uses common programming constructs such as loops, conditionals, and function calls to describe the flow of an algorithm. It also allows for the use of variables to represent data and operations to manipulate that data.

The main goal of pseudocode is to provide a high-level overview of an algorithm and its steps, allowing for easier understanding and communication between programmers. It is a valuable tool in the early stages of programming, helping to plan and design algorithms before diving into the actual coding process.
 
Ganito pag kaintindi ko
*
Int x
Int y
Int sum
Or
Int x,y,sum

*
Int x=1
Int y=2

*
Sum = x+y

*
print x
print y
 
Ganito pag kaintindi ko
*
Int x
Int y
Int sum
Or
Int x,y,sum

*
Int x=1
Int y=2

*
Sum = x+y

*
print x
print y
Salamat po sir, quiz po kasi agad ih nag lecture lang po ng kunti 😅

Ganito pag kaintindi ko
*
Int x
Int y
Int sum
Or
Int x,y,sum

*
Int x=1
Int y=2

*
Sum = x+y

*
print x
print y

Salamat po sir, quiz po kasi agad ih nag lecture lang po ng kunti 😅
Boss heto nga din po, nanood ako sa YøùTùbé pero di ako sure sa mga sagot ko ih, kukuha lang po ako ng idea niyo if tugma po tayo hehehe

Salamat po sir, quiz po kasi agad ih nag lecture lang po ng kunti 😅
Boss heto nga din po, nanood ako sa YøùTùbé pero di ako sure sa mga sagot ko ih, kukuha lang po ako ng idea niyo if tugma po tayo hehehe
 

Attachments

Last edited:
Pseudocode is an informal way of describing an algorithm using a mixture of natural language and programming concepts. It is not tied to any specific programming language syntax or technology considerations, making it a flexible tool for expressing algorithms in a clear and understandable manner.

Pseudocode allows you to focus on the logic and steps of an algorithm without getting caught up in the specific syntax or implementation details. It is often used as a means of communication between programmers, allowing them to discuss and understand algorithms before actually writing the code.

Pseudocode typically uses common programming constructs such as loops, conditionals, and function calls to describe the flow of an algorithm. It also allows for the use of variables to represent data and operations to manipulate that data.

The main goal of pseudocode is to provide a high-level overview of an algorithm and its steps, allowing for easier understanding and communication between programmers. It is a valuable tool in the early stages of programming, helping to plan and design algorithms before diving into the actual coding process.

Simulan mo sa ganito.

Start:

declare variables:
============
integer x, y
integer sum

set values:
=======
make x equal to 1
make y equal to 1

calculate the sum of x and y:
====================
make sum equal to x + y

print out the sum of x and y:
===================
display sum

end:

Translated sa filipino.
-------------------
Simula:

Mga variables:
==========
integer x, y
integer sum

Lagyan ng laman:
============
itakda ang 1 sa x
itakda ang 1 sa y

Ilagay ang x + y sa sum:
=================
itakda ang x + y sa sum

Ipakita ang sum:
============
ilimbag ang sum

Wakas:
 
Last edited:
Simulan mo sa ganito.

Start:

declare variables:
============
integer x, y
integer sum

set values:
=======
make x equal to 1
make y equal to 1

calculate the sum of x and y:
====================
make sum equal to x + y

print out the sum of x and y:
===================
display sum

end:

Translated sa filipino.
-------------------
Simula:

Mga variables:
==========
integer x, y
integer sum

Lagyan ng laman:
============
itakda ang 1 sa x
itakda ang 1 sa y

Ilagay ang x + y sa sum:
=================
itakda ang x + y sa sum

Ipakita ang sum:
============
ilimbag ang sum

Wakas:
Sir thank you po, mas naintindihan kopo sa explanation niyo. Pwede din po ba sa pseudocode, into algorithm? Explain niyo din po ng ganito or same lang po?
 
Ang pseudocode ay english(trans. Filipino) like instructions of coding/syntax (phrases). Tulad ito ng ibinigay ko na example.

Ang algorithm ay tulad ng instruction ng exam mo. "Task 1: Write a pseudocode for each algorithm"

I-tsek mo itong thread:

Algorithm and flowchart
 
Last edited:
Back
Top