LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   A diagram for script (https://www.linuxquestions.org/questions/programming-9/a-diagram-for-script-4175440537/)

Aerosilver 12-08-2012 01:05 AM

A diagram for script
 
Hello everyone.

I am a student, and in my school, my teacher tell me a hierarchy diagram about my script in linux, which can add user, delete, modify, do queries to the database, save logs of the user, etc.

I don't know how to do that diagram, I finded in internet about that, but nothing can clear my doubts about that diagram.

If somebody know about that please help me.

Thanks in advances.
Regards,
Federico.

Sergei Steshenko 12-08-2012 04:57 AM

Quote:

Originally Posted by Aerosilver (Post 4844996)
Hello everyone.

I am a student, and in my school, my teacher tell me a hierarchy diagram about my script in linux, which can add user, delete, modify, do queries to the database, save logs of the user, etc.

I don't know how to do that diagram, I finded in internet about that, but nothing can clear my doubts about that diagram.

If somebody know about that please help me.

Thanks in advances.
Regards,
Federico.

I am not sure I understand your question. Probably something like this is meant:



Code:

main
  foo
    doo
  bar

in English meaning:

the main program calls 'foo' and 'bar' functions, and 'foo' function in its turn calls 'doo' function.

If so, you can easily do this manually. I.e. for a simple script it will take more time to find and learn a tool which does this automatically.

Ask the teacher if that's what he/she meant.

...

Try also https://duckduckgo.com/?q=function+call+tree -> http://www.telerik.com/help/justtrac...call-tree.html , etc.

Habitual 12-08-2012 12:18 PM

Quote:

...my teacher tell me a hierarchy diagram about my script in linux, which can add user, delete, modify, do queries to the database, save logs of the user, etc....
Federico:

This sounds like a request for pseudo-code.

"Pseudocode consists of short, English phrases used to explain specific tasks within a program's algorithm"

Example:
Original Program Specification:
Write a program that obtains two integer numbers from the user. It will print out the sum of those numbers.

Pseudocode:
  • Prompt the user to enter the first integer
  • Prompt the user to enter a second integer
  • Compute the sum of the two user inputs
  • Display an output prompt that explains the answer as the sum
  • Display the result

TobiSGD 12-08-2012 12:32 PM

If someone asks for a diagram of a source it is usually a flowchart or, if the language that is used is an object oriented language, an UML diagram.
You should ask your teacher to clarify the question.


All times are GMT -5. The time now is 12:21 AM.