Can some help me write this scratch program in pseudocode !
i have done my project and its saved as "count"
I am new to pseudocode so please explain with steps if possible thanks !
Offline
Could you please explain what PseudoCode is? And if it isn't related to scratch, this topic is probably better in Misc.
Offline
ProgrammingFreak wrote:
Could you please explain what PseudoCode is? And if it isn't related to scratch, this topic is probably better in Misc.
He can't post in misc.
Offline
ImagineIt wrote:
ProgrammingFreak wrote:
Could you please explain what PseudoCode is? And if it isn't related to scratch, this topic is probably better in Misc.
He can't post in misc.
True...
Offline
Psuedocode just means to write it out kind of like it was in a computer language - only focusing more on the ideas behind the program rather than making sure it would actually run with proper syntax. Here's one interpretation:
Initialize variables
Look at each list item
if it's smaller than the smallest we've seen yet
remember it as the smallest
end if
next list item
output results
Here's a version that's closer to actual computer code:
Set the min_index variable to one
Set the count variable to zero
for each item in the list
increment count
compare that item at index count to the item at index min_index
if it is smaller
set min_index to count
end if
next item
output count
Offline