I. Features of the flowchart
In the flowchart we introduced, each frame represents a process, and the process line represents the link between two adjacent processes. This is a directed line and its direction is marked by the arrow above it, used to indicate the progress of the process. obviously, the process flow chart does not allow the appearance of several links or loop loops at the beginning and end of each process. Of course, each process can be further subdivided and a finer overall planning diagram can be drawn, this point is similar to the flowchart of the algorithm: from top to bottom, gradually refined.
Note: a closed loop is allowed in the flowchart, but a closed loop is not allowed in the flowchart.
2. Flowchart
1. Procedure Flowchart
A program flow chart is a graphic that accurately expresses an algorithm by pointing to lines and text instructions. It is intuitive and visualized and clearly shows the logical structure of an algorithm. rules for drawing a program diagram: use standard block diagram symbols. The diagram is generally drawn from top to bottom, from left to right. Except for the judgment box, most flowcharts have only one entry point and one exit point, and the judgment box has a unique symbol that exceeds one exit point.
Example 1. when you send an individual to a bank for remote remittance (no more than 1 million), the bank will charge a certain amount of service fees. if the remittance amount does not exceed 100 yuan, a 1 yuan service charge will be collected. If the remittance amount exceeds 100 yuan but does not exceed 5000 yuan, a 50 yuan service charge will be collected based on 1% of the remittance amount. If the remittance amount exceeds 5000 yuan, a 50 yuan service charge will be collected. when the design algorithm calculates the remittance amount of X yuan, the bank will charge the commission fee of Y yuan and only draw a flowchart.
[Analysis] Write the algorithm step based on the question, and then use the program flowchart to represent the algorithm.
[Resolution] to calculate the handling fee, you must first establish a function relationship between the number of remittances and the handling fee.
Flowchart
[Comment] Generally, the steps for solving this type of problem are: first, "refine" the problem to be solved, that is, first describe the algorithm steps in the question in natural language, then, the natural language is visually expressed in a flowchart,
2. Process Flowchart
A common method is to divide a job or project from start to end into several processes in sequence (that is, top to bottom), each of which is represented in a rectangle, enter the name or code of the process in the rectangle. process lines are used to connect two adjacent processes. sometimes, to reasonably arrange the project progress, specify the time required to complete the process in each process box. at the beginning, the process flow chart can be roughly drawn, and then gradually refined on each frame.
Example 2. A company needs to follow the following procedure for recruitment:
Before recruitment, you must clarify the recruitment matters. If you graduate from a university, you must present your diploma and ID card, enter the letter of employment, and accept the student directly. If you do not graduate from a university, you must take the examination and training, first, you must enter the examinee's registry, get the examinee's number, specify the examination subject and time, then pay the examination fee, take the examination according to the prescribed time, and receive the transcript. If the score is qualified, you will be hired, and fill in the Letter of employment. If the score is unqualified, the employee will be hired.
Design a flowchart to indicate the recruitment procedure of the company.
[Analysis] in actual life, the flowchart is not as strict as the procedural diagram, but it is necessary to clarify the logical relationship between each step. When drawing the flowchart, the process line can be used to reflect their logical relationship.
[Resolution] flowchart:
[Comment] Flowcharts are generally drawn from left to right and from top to bottom based on people's habits. The flowcharts used in daily life are more free than the flowcharts, and different colors can be used, you can also add some vivid graphic elements.
3. Advantages and disadvantages of the flowchart
Example 3: If you want to drink tea in a pot, the situation is: No boiling water, the boiling water pot to wash, the tea pot and the cup to wash, the tea already exist, ask how to proceed.
[Analysis] the final purpose of this question is to make tea. Before that, you should wash the kettle, teapot, Teacup, tea, and boiling water. Different operations may have different effects.
[Resolution] solution 1: wash the kettle, fill in the cold water, put it on the stove, open the gas. after the water is boiled, wash the teapot, cup, tea, and tea as shown in the flowchart 3-1 (note: the upper part of the box shows the time difference between each process ):
Solution 2
Solution 3: wash the kettle, pour the cold water into the boiling water, and wash the teapot, Teacup, and tea in the waiting time. After the water is turned on, the tea is made 3-3.
[Comment] The key to solving such a problem is to analyze the time difference of each process. During the time difference, which processes can be performed in parallel to save time and effort.
In short, the flowchart is generally drawn from left to right, from top to bottom. you can use different colors or add some vivid graphic elements when drawing a flowchart. when a procedural activity is described using a flowchart, if the activity contains two steps simultaneously, you need to start from the same basic unit to draw two flow lines.