Ask your own question, for FREE!
Computer Science 15 Online
OpenStudy (anonymous):

How to write Pseudo-code? My question is really how much detail there should be in the algorithm. I mean, do I include the formulas, too? Here is a sample pseudo-code I wrote for a program that asks if a number is even or odd. Display "Enter number: " Get input = number Divide number by 2 If remainder is equal to 0 then display that number is even. If remainder is greater than 0 the display that number is odd.

OpenStudy (mandre):

I'm not even sure if there is an "official" way to do pseudocode, but this is the way they do it in my Numerical methods textbook. Output("Enter number") Input(number) remainder = number mod 2 if remainder = 1 then { Output ("Your number is odd") } else { Output ("Your number is even") }

OpenStudy (e.mccormick):

Psudo = Fake/Simulated Code = Computer programming So it is a fake or simulated program. Like Mandre's cat says, it is not some official thing with one way to do it.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Mari103: How to pop out like a Jacc In the box
4 minutes ago 0 Replies 0 Medals
Breathless: Spooky witch but cute
7 hours ago 3 Replies 0 Medals
Arriyanalol: help
6 hours ago 10 Replies 2 Medals
Arriyanalol: @tinydinoUwU stop trying to find a argument u blad lil boy
1 day ago 5 Replies 4 Medals
Jaded012023: Please tell me what you all think of this song
9 hours ago 6 Replies 1 Medal
Arriyanalol: bro how
9 hours ago 2 Replies 3 Medals
Arriyanalol: cant wait for the new bluey movie in 2027
1 day ago 12 Replies 2 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!