Thread: planning

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    6

    planning

    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

  2. #2
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    You need to do planning for a program that's already written that has its source on the web?

  3. #3
    Registered User
    Join Date
    Jan 2002
    Posts
    6
    yeah u got it!!! but i dont know how!!! i know i have to do a psudeo code or something like that

  4. #4
    Seņor Member
    Join Date
    Jan 2002
    Posts
    560
    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.

  5. #5
    Registered User
    Join Date
    Jan 2002
    Posts
    6
    i dont know how to do the psudeo code thing can u help???

  6. #6
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Posts
    1,784
    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

    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:
    ...
    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.

  7. #7
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    Planning. Do you mean something like this?

    Setup a list of requirements
    Create a global design
    Create detailed designs
    Implement the code
    Perform testing

  8. #8
    Registered User
    Join Date
    Jan 2002
    Posts
    6
    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

    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:
    ...
    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.
    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 )

  9. #9
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Posts
    1,784
    There are no set rules.

    Code:
    PROMPT user for 5 test scores
    CALCULATE average of the test scores
    Looks organized if you use keywords.

  10. #10
    Registered User
    Join Date
    Jan 2002
    Posts
    6
    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!

  11. #11
    Registered User
    Join Date
    Jan 2002
    Posts
    6
    just had an idea can i just input as the keyword for scanf

  12. #12
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Posts
    1,784
    For scanf use PROMPT
    Code:
    PROMPT user to enter his name
    DISPLAY the users name
    And for variables, well, they don't get mentioned in pseudocode.

  13. #13
    Seņor Member
    Join Date
    Jan 2002
    Posts
    560
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. literature database: help with planning
    By officedog in forum C++ Programming
    Replies: 1
    Last Post: 01-23-2009, 12:34 PM
  2. need help planning a space invader game
    By thestien in forum Game Programming
    Replies: 3
    Last Post: 10-03-2006, 01:08 AM
  3. How much planning before coding?
    By homeyg in forum Game Programming
    Replies: 4
    Last Post: 02-25-2005, 09:13 PM
  4. planning and organizing for bigger projects
    By m00se123 in forum Game Programming
    Replies: 2
    Last Post: 10-28-2002, 02:49 PM
  5. Planning to start C++
    By Unregistered in forum C++ Programming
    Replies: 4
    Last Post: 10-30-2001, 08:25 PM