The Artima Developer Community
Sponsored Link

Design Forum
Learning Psudeocode

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
pacodub

Posts: 1
Nickname: pacodub
Registered: Sep, 2004

Learning Psudeocode Posted: Sep 15, 2004 6:26 AM
Reply to this message Reply
Advertisement
I just started learning this but I am having some difficulties trying to pick an answer for this. Mabye you guys can help?

Start

Do loop

Get inputNumber

Compute doubleNumber as inputNumber * 2

Print doubleNumber

Until eof

Stop

1. This code makes an assumption about the data stream that will be sent to it, what do you think that assumption is?
2. Correct the psuedocode to eliminate this assumption.

* I think the assumptionis that there is more than one number. In order to fix the code to add get inputNumber..

Can anyone shed some light on this?

Topic: Routing algorithm using socket programming Previous Topic   Next Topic Topic: query regarding getting usernames through MCMS API

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use