In my class I have been asked to design an algorithm for a converter that converts units in Metric to English and vice versa using pseudocode.
Can anyone help me with this. I think that if I had an example to work with I could better understand how all this works.
Thank You
Basic programming help
Page 1 of 13 Replies - 3551 Views - Last Post: 17 December 2006 - 01:11 AM
Replies To: Basic programming help
#2
Re: Basic programming help
Posted 08 December 2006 - 10:37 AM
IF conversion is Metric To English Multiply original value BY conversion rate End IF IF conversion is English to Metric Multiply original value BY conversion rate End IF
Of course you'll need to beef it up a little....flesh it out with further details
#3
Re: Basic programming help
Posted 08 December 2006 - 09:44 PM
Amadeus, on 8 Dec, 2006 - 10:37 AM, said:
IF conversion is Metric To English Multiply original value BY conversion rate End IF IF conversion is English to Metric Multiply original value BY conversion rate End IF
Of course you'll need to beef it up a little....flesh it out with further details
Thanks Amdeus but this where my problem exist I don't know what goes in between. This an introductory class to programming and on day 1 I am being asked to do something that I have no basic knowledge to complete it's like that old saying putting the cart before the horse. Could you just this once tell me what the whole code would look like.
Thank you
#4
Re: Basic programming help
Posted 17 December 2006 - 01:11 AM
I believe what you are being asked to do is layout the logical steps and a formula YOU would follow to convert from one standard to the other. Before we can solve a problem with programming we must know how to solve the problem ourselves, this is where you must start. Define what you need to have the computer accomplish.
example:
Take a metric lenth value
multiply by a conversion value
print the result
example:
Take a metric lenth value
multiply by a conversion value
print the result
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|