Skip to main content
. 2017 Mar 21;17(3):642. doi: 10.3390/s17030642
Algorithm 2: The occurrence number of threat level attacks algorithm
Input: ThreatDegree.
Output: The Stack of Integer value.
1. if the input value is 0.2, then{
2. unknown++;
3. push (unknown);}
4. else if the input value is 0.4, then{
5. verylow++;
6. push (verylow++);}
7. else if the input value is 0.6, then{
8. low++;
9. push (low);}
10. else if the input value is 0.8, then{
11. medium++;
12. push (medium);}
13. else if the input value is 1.0, then{
14. high++;
15. push(high);}
16. else printf (“the value is illegal”);
17. reuturn value.