Showing posts with label computational thinking. Show all posts
Showing posts with label computational thinking. Show all posts

Saturday, May 12, 2018

Monadic and Dyadic Operators

Monadic and Dyadic Operators
Operators can be monadic or dyadic A monadic operator operates on a single simple statement. Other operators will all be dyadic operators because they operate on two simple statements. Any time you use an operator with a simple statement, even a monadic operator, you create a compound statement.

Compound Statements and Truth Function
All the compound statements we'll look at are called "truth-functional" compound statements. This means that the truth value of the entire statement is determined by the truth value of the individual simple statements that make it up and the function of the operator on those statements.

If you write computer programs, you can think of the simple statements as inputs and the operator as the function that accepts those inputs and does something with them. The output of the entire function is determined by the value of the inputs and the specific operation of the function. Consider this simple program written in pseudocode which will take a string value and change the value to all caps and then print it to the screen:
Function PrintCaps (string A)
{
    A = AllCaps(A);
    Print A
}

SQL

I've hit a wall in my SQL studies via the Khan Academy, and as such, I am engaging in additional studies prior to attempting to move for...