Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
How to turn this into an algorithm pseudo code for C#?
I'm not trying to ask for the answers, but I need help because I'm completely new at this. I need to be able to identify: Sequential, Iterative, or Conditional steps in this sentence;
" Go out on Sunday to brunch with friends"
Then I have to make a step by step algorithm with those type of steps above in mind to execute the activity... I need help real bad.
1 Answer
- jcastroLv 64 years ago
How would you prepare for "Go out on Sunday to brunch with friends"? Can you describe all tasks needed, in precise detail and in a coherent order? That's what is required.
Some possible tasks are:
- Call each friend to invite him/her. (iterative, on a list of friends)
- If no friend is available, the brunch is canceled. (conditional)
- Check the weather forecast for Sunday. (set a "forecast" variable)
- If the forecast is sunny, choose an outdoor restaurant; else, choose an indoor restaurant. (conditional)
Sequential steps are guaranteed just by doing things in a common sense order, say, "taking a bus" after "leaving home", not before.