Pseudocode

Programming & Compiler topics

Pseudocode

Postby G-sparkZ » Wed Mar 17, 2010 12:56 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 2:56 pm, edited 1 time in total.
Reason: Pseudocode
User avatar
G-sparkZ
Promo Team
 
Posts: 296
Joined: Thu Feb 18, 2010 11:36 am
Cash on hand: 15,777.40
Bank: 0.00
Location: SRI LANKA.KANDY.

Invitations sent: 23
Registered friends: 3

Re: PSEUDO CORDS

Postby G-sparkZ » Wed Mar 17, 2010 12:58 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
G-sparkZ
Promo Team
 
Posts: 296
Joined: Thu Feb 18, 2010 11:36 am
Cash on hand: 15,777.40
Bank: 0.00
Location: SRI LANKA.KANDY.

Invitations sent: 23
Registered friends: 3

Re: PSEUDO CORDS

Postby G-sparkZ » Wed Mar 17, 2010 2:15 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
G-sparkZ
Promo Team
 
Posts: 296
Joined: Thu Feb 18, 2010 11:36 am
Cash on hand: 15,777.40
Bank: 0.00
Location: SRI LANKA.KANDY.

Invitations sent: 23
Registered friends: 3

Re: PSEUDO CORDS

Postby G-sparkZ » Wed Mar 17, 2010 2:25 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
G-sparkZ
Promo Team
 
Posts: 296
Joined: Thu Feb 18, 2010 11:36 am
Cash on hand: 15,777.40
Bank: 0.00
Location: SRI LANKA.KANDY.

Invitations sent: 23
Registered friends: 3

Re: PSEUDO CORDS

Postby G-sparkZ » Wed Mar 17, 2010 2:42 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
G-sparkZ
Promo Team
 
Posts: 296
Joined: Thu Feb 18, 2010 11:36 am
Cash on hand: 15,777.40
Bank: 0.00
Location: SRI LANKA.KANDY.

Invitations sent: 23
Registered friends: 3

Re: PSEUDO CORDS

Postby G-sparkZ » Wed Mar 17, 2010 2:56 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
G-sparkZ
Promo Team
 
Posts: 296
Joined: Thu Feb 18, 2010 11:36 am
Cash on hand: 15,777.40
Bank: 0.00
Location: SRI LANKA.KANDY.

Invitations sent: 23
Registered friends: 3

Re: Pseudocode

Postby Neo » Wed Mar 17, 2010 4:31 pm

User avatar
Neo
Site Admin
 
Posts: 1145
Joined: Tue Jul 14, 2009 8:37 pm
Cash on hand: 66,229.10
Bank: 1,222,787.00
Location: London
Medals: 1
EC_Achievment (1)

Invitations sent: 85
Registered friends: 11
Highscores: 11

Re: Pseudocode

Postby Neo » Wed Mar 17, 2010 4:42 pm

User avatar
Neo
Site Admin
 
Posts: 1145
Joined: Tue Jul 14, 2009 8:37 pm
Cash on hand: 66,229.10
Bank: 1,222,787.00
Location: London
Medals: 1
EC_Achievment (1)

Invitations sent: 85
Registered friends: 11
Highscores: 11

Re: Pseudocode

Postby smithdwsn » Thu May 13, 2010 3:19 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
smithdwsn
 
Posts: 2
Joined: Wed May 12, 2010 6:12 pm
Cash on hand: 156.10

Invitations sent: 0
Registered friends: 0

Re: Pseudocode

Postby G-sparkZ » Thu May 13, 2010 3:30 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....:)
User avatar
G-sparkZ
Promo Team
 
Posts: 296
Joined: Thu Feb 18, 2010 11:36 am
Cash on hand: 15,777.40
Bank: 0.00
Location: SRI LANKA.KANDY.

Invitations sent: 23
Registered friends: 3


Return to Programming Languages & Compiler Theory

Who is online

Users browsing this forum: No registered users and 1 guest