# Evaluating process

Evaluating process[1]

You must evaluateAssess the implications and limitations; make judgments about the ideas, works, solutions or methods in relation to selected criteria. if the sequence of activities (or instructions) will result in the required outcomes. This evaluation can be logical, arithmetic, or both.

A common scenario is evaluating the order of conditionals. You must become very good at tracing conditional expressions.

You should remember your order of operations:

In mathematics and computer programming, the order of operations (or operator precedence) is a collection of rules that reflect conventions about which procedures to perform first in order to evaluateAssess the implications and limitations; make judgments about the ideas, works, solutions or methods in relation to selected criteria. a given mathematical expression.[2] The mathematical order of operation is: PEMDAS (Parentheses, Exponents, Multiplication, Division, Addition, Subtraction).

## How to evaluateAssess the implications and limitations; make judgments about the ideas, works, solutions or methods in relation to selected criteria. a process

UseApply knowledge or rules to put theory into practice. a step-by-step process and traceFollow and record the action of an algorithm. the value of a variable or value. Ask yourself, at each step in the process, what is the current value or stateGive a specific name, value or other brief answer without explanation or calculation. of a variable. Let's look at some examples.

### Example

Imagine you are writing a simple computer program which must output the winner of a game. A winner is determined by the highest numerical score (int). The input is two scores. The output must be only one of the scores below:

1. The first score is the winner
2. The second score is the winner
3. There is a tie
```1 def whoIsTheWinner(score1, score2):
2     if score1 > score2:
3         winner = "The first score is the winner"
4     elif score2 > score1:
5         winner = "The second score is the winner"
6     else:
7         winner = "There is a tie"
8     return winner
```

If we were to evaluateAssess the implications and limitations; make judgments about the ideas, works, solutions or methods in relation to selected criteria. this process, we would stop at each line of execution the value of each variable (score1 and score2). We would then ask ourselves:

1. If score1 is higher than score2, would the program output score1 is the winner?
2. If score2 is higher than score1, would the program output score2 is the winner?
3. If both scores are the same, would the program output there is a tie?

Other Questions to code:

1. If John is a bachelor, then he is male. John is male. Therefore, John is a bachelor.
2. If today is Monday, then I will attend cooking class today.
3. Either the current pope is married or he is a divorcé.

## Standards

• EvaluateAssess the implications and limitations; make judgments about the ideas, works, solutions or methods in relation to selected criteria. whether the order in which activities are undertaken will result in the required outcome.