answersLogoWhite

0

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

12y ago

What else can I help you with?

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 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 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 an example of how a subroutine or procedure can be used several times in the same program each time accepting different values and passing them back?

A function.

Related Questions

What are the example of procedure?

an example of a procedure that involves a inspection is


What was a new more logical procedure of gathering ideas?

scientific method


Logical arithmetical or computational procedure that if correctly applied ensures the solution of a problem?

algorithm


What are the examples of procedure?

an example of a procedure that involves a inspection is


A domain is an example of what type of logical network topology?

Domain is client-server logical topology.


What is the use of a logical procedure for gathering and testing ideas known as?

Might be called the scientific method.


What is logical addressing in networking?

The Logical address is what we assign to the Network device to identify. for example IP Address.


What is an algerithm?

I think you mean Algorithm....which is a logical arithmetical procedure, that if correctly applied, ensures the solution of a problem.


What is an example of a sentence using the word logical?

He stated a logical argument. The logical thing to do is to hear her out. Sometimes people make emotional decisions that are not logical.


What is in example of An educated guess?

Logical and full of benificial meanings.


Which type of logical fallacy is this an example of?

It looks like you haven't provided an example of a logical fallacy. If you have one in mind, please share it so I can help identify which type of fallacy it belongs to.


Show an example a logical sentence?

it makes sense for teachers to keep up with advances in their areas. Not only is it logical, it's necessary.