Thursday, July 30, 2009

How to write an algorithm expressed as a pseudocode for C?

I'm not sure where I would even start on how to do this, can anyone give me some help or recommend a website or reading aid.





I have to convert an unsigned integer value to a string of hexadecimal (base 16) digits.





Begin by deducing the context required. List this, in plain English, above your algorithm.





Proceed by considering a very simple expression of what is required and then refine this to express your complete method (i.e. give two levels of pseudocode).





Ensure you follow the Style Conventions for C and Pseudocode.





any help would be much appreciated.





Alex

How to write an algorithm expressed as a pseudocode for C?
http://en.wikipedia.org/wiki/Pseudocode The External links sections has more details. http://www.csc.calpoly.edu/~jdalbey/SWE/... is particularly useful.





Pseudocode is basically software code in a general format.


For non-programmer, the for and while 'loop' usualy get you confused. They are just ways to keep doing something until a condition is satisfied.


No comments:

Post a Comment