View Full Version : Pseudocode algorithm
maryam_nuha
Sep 30, 2011, 09:42 AM
Does any of you know how to write pseudo code algorithm?
rpray2007
Sep 30, 2011, 09:55 AM
I think you are really asking for the pseudo-code for a specific algorithm. Which algorithm are you interested in understanding?
Pseudo-code is exactly as the term implies - a way to write structured logic in what looks like code, but is not, making it a little easier to understand. It also abstracts the intricacies of a specific coding language. Pseudo-code is often used in computer science text books to describe algorithms, or data structures. It could be used to express a complicated algorithm that they are devising and want to quickly share it with others so they can collaborate.
If you need something else, please feel free to clarify your question further.
maryam_nuha
Sep 30, 2011, 10:12 PM
Writing programming languages using standard pseudo codes like 'repeat... until' 'while... do... end-while'. A question I came across is:
The exchange rate between the US dollar (US$) and the Brazilian Real (R$) changes everyday. Write an algorithm, using pseudo code or otherwise, which inputs the exchange rate for every day over a 10 year period (assume that each year = 365 days) and then outputs the following: The average (mean) exchange rate, The best (highest) exchange rate, The worst (lowest) exchange rate, The number of occasions when the exchange rate was above 2.0
rpray2007
Oct 3, 2011, 02:05 PM
Yes, this seems like a great problem to solve and to describe your algorithm using pseudo-code. Is this a problem that you have to solve? If so, just describe your solution and I am happy to work through it with you.
I've got a decent computer science background (M.S in Comp Sci) so that's why I find this problem interesting.
maryam_nuha
Oct 4, 2011, 09:35 AM
Yeah. I was revising for my O Levels and I found this question which I could not answer. I asked my teacher but he keeps insisting me to try. But I could not and he still refuses to tell. I even don't know this question. Sir gave me a hint saying to use "end...if" or "while...end...if" loop. Can you help me?
babiietoya04
Mar 25, 2012, 09:50 AM
Develop an algorithm in narrative and pseudocode or flowchart that will accept the names of all staff members and their total sales for the month.