 |
|
|
 |
New Member
|
|
Sep 30, 2011, 09:42 AM
|
|
Pseudocode algorithm
Does any of you know how to write pseudo code algorithm?
|
|
 |
Full Member
|
|
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.
|
|
 |
New Member
|
|
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
|
|
 |
Full Member
|
|
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.
|
|
 |
New Member
|
|
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?
|
|
 |
New Member
|
|
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.
|
|
Question Tools |
Search this Question |
|
|
Add your answer here.
Check out some similar questions!
Pseudocode statements
[ 2 Answers ]
Hi, these are my guesses. Can you please check on them?
1) A ___ statement in pseudocode to write a single alternative decision structure.
B?
a) Test-jump
b) If-Then
c) If-Then else
d) If-Call
Pseudocode and Decision
[ 1 Answers ]
A retail company assigns a $5000 store bonus if monthly sales are $100,000 or more. Additionally, if their sales exceed 125% or more of their monthly goal of 90,000, then all employees will receive a message stating that they will get a dy off.
Write pseudocode for the following:
[ 4 Answers ]
Write a pseudocode that will accept the names of 20 sales clerks and their total sales for the month. The algorithm must calcuate the commission at 3% of heir total sales amount. Display the name, total sales, commission of the members with the highest commission and number of persons without...
Pseudocode programming
[ 2 Answers ]
This pseudocode contains several nested If-Then-Else statements. It was written without proper alignment and indentation. How would I rewrite the code and use proper conventions of alignment and indentation?
If score < 60 Then
Display “Your grade is F.”
Else
If score <70 Then
Display “Your...
View more questions
Search
|