i need to do planing for this program but i dont know where to start!!! please help if u can http://www.fred.marriott.btinternet.co.uk/downloads.htm
i need to do planing for this program but i dont know where to start!!! please help if u can http://www.fred.marriott.btinternet.co.uk/downloads.htm
You need to do planning for a program that's already written that has its source on the web?
-Govtcheez
[email protected]
yeah u got it!!! but i dont know how!!! i know i have to do a psudeo code or something like that
Yup. Psudeocode would be planning... just think out the functions you are going to use and think up some algorithms and stuff, it shouldnt be that hard, just think out how you are gonna do it.
i dont know how to do the psudeo code thing can u help???
Psudeocode is just a line by line english readable stranslation of your program. Use a few keywords such as READ, DISPLAY, CALCULATE, LOOP, EXITLOOPWHEN, IF, ENDIF. PROMPT, For example
Each function ends with a RETURN while Main ends with an END. If you want something better than you need to learn UML, but this serves the purpose of helping a programmer figure out a problem before coding. Personally I don't use it very often, but I had to do it in school when I did C.Code:MAIN: LOOP CALL ReadMod function to read records EXITLOOPWHEN ReadMod signals end of file CALL SortMod to sort the records LOOP DISPLAY records EXITLOOPWHEN all data records are listed END ReadMod: OPEN datafile LOOP READ a record from the data file EXITLOOPWHEN there are no more records left in the datafile RETURN SortMod: ...
Planning. Do you mean something like this?
Setup a list of requirements
Create a global design
Create detailed designs
Implement the code
Perform testing
this really HELPS me thanx!!! do u know of where i can find all the keywords??? or do u just make them up??? (btw its for uni i HAVE 2 do C++ even tho im doing computer art!!! lol )Originally posted by Troll_King
Psudeocode is just a line by line english readable stranslation of your program. Use a few keywords such as READ, DISPLAY, CALCULATE, LOOP, EXITLOOPWHEN, IF, ENDIF. PROMPT, For example
Each function ends with a RETURN while Main ends with an END. If you want something better than you need to learn UML, but this serves the purpose of helping a programmer figure out a problem before coding. Personally I don't use it very often, but I had to do it in school when I did C.Code:MAIN: LOOP CALL ReadMod function to read records EXITLOOPWHEN ReadMod signals end of file CALL SortMod to sort the records LOOP DISPLAY records EXITLOOPWHEN all data records are listed END ReadMod: OPEN datafile LOOP READ a record from the data file EXITLOOPWHEN there are no more records left in the datafile RETURN SortMod: ...
There are no set rules.
Looks organized if you use keywords.Code:PROMPT user for 5 test scores CALCULATE average of the test scores
ok if u would care to look at the link in my first post can u please tell me what i could use as a keyword for scanf, void and float???
thanx
p.s u guys have been great without u i would have no chance
if ever u need any wed images editing or owt like that let me know and i will only be 2 glad 2 help!
just had an idea can i just input as the keyword for scanf
For scanf use PROMPT
And for variables, well, they don't get mentioned in pseudocode.Code:PROMPT user to enter his name DISPLAY the users name
Jeez... you really shouldn't get that worked up about psudeo code, it's jsut there to help you when you make the program. Do what feels best to you, if you feel comfortable using actual snippets of code in places and actually write out variables (thats what i do when I'm brainstorming) then do it. All it is for is to make it easier on yourself... there's no set way to do it as far as I know and if there is, don't worry about it.