statement should be found to be true, then the logical execution of the algorithm will flow down the left-hand side of the page. In the above depicted example, if the condition tested by the: statement should be found to be false, then the logical execution of the algorithm will flow down the right-hand side of the page. When we introduce a logical split into our algorithm, then this is termed: ‘branching’ . The true and false tributaries of the depicted flow-chart algorithm are termed: ‘branches’ . Figure 2: The algorithm branches. We can instruct the computer to do different tasks depending upon whether the logical condition tested by the if statement be found true or false. Figure 3: In this segment of a Flowchart Algorithm, we can see that it branches after we test a logical condition with an if statement. In the
Writing a Program that Corresponds to our Algorithm in C: On Page 5, we wrote an algorithm that solved a computational problem. The computational problem that was solved by the algorithm depicted on page 5 can be stated as: With the above-stated computational problem solved, we can now easily write a program that corresponds to the algorithm, not only in Python syntax, but in C syntax, as well. Figure 10: The C program that corresponds to the algorithm depicted on Page 5. Figure 11: What the C program depicted in Figure 10 outputs should the user input a 0. Figure 12: What the C program depicted in Figure 10 outputs should the user input a 1. Figure 13: What the C program depicted in Figure 10 outputs should the user input a literal that is neither a 0 or a 1.
imperative adjective. of vital importance; crucial: immediate action was imperative | [with clause] it is imperative that standards are maintained. giving an authoritative command; peremptory: the bell pealed again, a final imperative call. [GRAMMAR] denoting the mood of a verb that expresses a command or exhortation, as in come here! noun. an essential or urgent thing: free movement of labour was an economic imperative. a factor or influence making something necessary: the biological imperatives which guide male and female behaviour. [GRAMMAR] a verb or phrase in the imperative mood. (the imperative) the imperative mood. <DERIVATIVES> imperatival adjective. imperatively adverb. noun. <ORIGIN> late Middle English (as a grammatical term): from Late Latin imperativus (literally ‘specially ordered’, translating Greek prostatikē enklisis ‘imperative mood’), from imperare ‘to command’, from in- ‘towards’ + parare ‘make ready’. <ETYMOLOGY> from the Latin 1st-and-2nd-declension adjective, ‘impĕrātīva, impĕrātīvus, impĕrātīvum,’ which means ‘pertaining to the command;’ ‘of the command.’ From the Latin 1st-conjugation verb, ‘imperō, imperāre, imperāvī, imperātum,’ which means ‘to command,’ ‘to order,’ and the Latin 1st-and-2nd-declension adjectival suffix ‘-īva, -īvum,’ which means ‘of,’ ‘concerning,’ ‘pertaining to.’ From the Latin prefix ‘in-’ which expresses the concept of ‘unto,’ ‘toward,’ and the Latin 1st-conjugation verb, ‘parō, parāre, parāvī, parātum,’ which means ‘to make ready,’ ‘to prepare.’ The etymological sense, therefore, of the English adjective, ‘imperative’ is: ‘concerning the command;’ ‘pertaining to the command;’ ‘of the command;’ ‘concerning the order;’ ‘pertaining to the order;’ ‘of the order;’ ‘concerning the making ready of;’ ‘pertaining to the making ready of;’ ‘of the making ready of;’ etc.