answersLogoWhite

0


Best Answer

A logical procedure is any procedure that identifies the unknown from the known.

For example, a procedure that returns the maximum of any two given values has two known variables (the given values) and one unknown variable (the result). By logically examining the known, the unknown can be determined.

Given the values x and y, the logical process can be reduced to the following pseudocode:

If x is greater than y then return x otherwise return y.

In C++, we'd encode this logical procedure as follows:

template

T& Max( T &x, T &y ) { return( x>y?x:y ); }

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is an example of a logical procedure?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Which is an example of a PLSQL subprogram?

A PL/SQL subprogram is equivalent to a procedure or function in conventional procedural programming.


What function is a logical function that returns one value if the statement is true and returns a different value if the statement is false?

isdigit is an example (see in ctype.h)


What are the uses of logical operators in Java?

Logical Operators are those that are used for doing logical operations. There are a total of 6 logical operators (&, |, ^, !, &&, and ‖) Of the six logical operators listed above, three of them (&, |, and ^) can also be used as "bitwise" operators. There are two non-short-circuit logical operators. • & non-short-circuit AND • | non-short-circuit OR There are two short-circuit logical operators • && short-circuit AND • short-circuit OR


What is the benefit of partitioning your drive?

Partitioning allows you to create a logical separation between different operating systems and data. For example, you could have a windows operating system on one partition, a Linux operating system on another partition, and your personal data (My Documents in windows and /home in Linux) on a third. This allows you to wipe one of your partitions clean and reformat without having to backup the data on the others (say for example, your windows install gets a virus).


What is the difference between mutuator and accessor methods?

Mutator: Put something into the class (change something). By convention, has a name that starts with "set", for example, "getName". Accessor: Get something out of the class (find out the class's state). By convention, has a name that starts with "get", for example, "getName". For logical values, "is" is used instead, for example, "isActive".

Related questions