Pseudocode

Programming & Compiler topics
Post Reply
User avatar
Face
Major
Major
Posts: 727
Joined: Thu Feb 18, 2010 5:06 pm
Location: SRI LANKA.KANDY.

Pseudocode

Post by Face » Wed Mar 17, 2010 6:26 pm

friends i have to study Pseudocode systems and about it ........

please hurry..i have only 2days for my studies..can any one teach me the basics...

BASICS only.....

but I am really hurry..
Last edited by Neo on Wed Mar 17, 2010 8:26 pm, edited 1 time in total.
Reason: Pseudocode
User avatar
Face
Major
Major
Posts: 727
Joined: Thu Feb 18, 2010 5:06 pm
Location: SRI LANKA.KANDY.

Re: PSEUDO CORDS

Post by Face » Wed Mar 17, 2010 6:28 pm

i am really hurry ..it is for my studies..i refer some webs but it is really hard to understand and there are no basics in simple language.

i wont get the idea in simple language....correctly..........

OKEY..
User avatar
Face
Major
Major
Posts: 727
Joined: Thu Feb 18, 2010 5:06 pm
Location: SRI LANKA.KANDY.

Re: PSEUDO CORDS

Post by Face » Wed Mar 17, 2010 7:45 pm

i got some ideas about COntroling structure..

>If..
>case..
>while..
>For..

but dont get any clear knowdge..
help me to get a clear picture
User avatar
Face
Major
Major
Posts: 727
Joined: Thu Feb 18, 2010 5:06 pm
Location: SRI LANKA.KANDY.

Re: PSEUDO CORDS

Post by Face » Wed Mar 17, 2010 7:55 pm

these are the some examples i got..i have answers but no explanations..
can any one help me out...
urgent

Q1).Write the pseudo cord for a program me to input 100 numbers & to out put number of positive values,number of negative values & number of Zeros.??

Aswr:-

Begin
Z=0
P=0
N=0
For C=1 to 100
Input X
If X=0 Then
Z=Z+1
Else
If X>0 Then
P=P+1
Else
N=N+1
Endif
Endif
Endfor
print Zeros "Z"
print Positives"P"
print negatives"N"
End


can you explain it for me...?
User avatar
Face
Major
Major
Posts: 727
Joined: Thu Feb 18, 2010 5:06 pm
Location: SRI LANKA.KANDY.

Re: PSEUDO CORDS

Post by Face » Wed Mar 17, 2010 8:12 pm

Write the pseudo cord for a program & print FACTORIAL value of a given positive Integer ,where factorial value..

Begin
F=1
C=1
input N
While C<=N
F=F*C
C=C+1
End while
Print Factorial value

Can you please Explain these Questions....
User avatar
Face
Major
Major
Posts: 727
Joined: Thu Feb 18, 2010 5:06 pm
Location: SRI LANKA.KANDY.

Re: PSEUDO CORDS

Post by Face » Wed Mar 17, 2010 8:26 pm

Write the pseudo cord for a program to input the marks for the get the highest mark maximum & minimum & avarage in a class?

begin
input M
max=-1
Min=101
avg=0
Count=0
while M<>-1 then
if M>max then
Max=M
End if
If M<min then
M=Min
End if
Sum=Sum+M
Input M
C=C+1
End while
Print Min
print Max
Avg=Sum/C
print Avg
End
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

Re: Pseudocode

Post by Neo » Wed Mar 17, 2010 10:01 pm

User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

Re: Pseudocode

Post by Neo » Wed Mar 17, 2010 10:12 pm

User avatar
smithdwsn
Posts: 2
Joined: Wed May 12, 2010 11:42 pm

Re: Pseudocode

Post by smithdwsn » Thu May 13, 2010 8:49 pm

Yes, really easy to learn with this example. You have used Pseudocode and follow the standard. It is work perfectly so basic understanding about Pseudocode might be easy with this.
User avatar
Face
Major
Major
Posts: 727
Joined: Thu Feb 18, 2010 5:06 pm
Location: SRI LANKA.KANDY.

Re: Pseudocode

Post by Face » Thu May 13, 2010 9:00 pm

Yes, really easy to learn with this example. You have used Pseudocode and follow the standard. It is work perfectly so basic understanding about Pseudocode might be easy with this.
which one friend?

there are soo many examples....:)
Post Reply

Return to “Programming Languages & Compiler Theory”