A typical employee works between 20 and 65 hours per week. Develop a program that determines the wage of an employee from the number of hours of work, if the number is within the proper range . They imply that the program must deal with its input in one way if it is in the legitimate range, and in a different way if it is not. In short, just as people need to reason about conditions, programs must compute in a conditional manner.
Conditions are nothing new.
In mathematics we talk of true and false claims, which are conditions. For example, a number may be equal to, less than, or greater than some other number. In general, a claim is true for some values of the variables and false for others. In addition to determining whether an individual claim holds in a given situation, it is sometimes important to determine whether combinations of claims hold. The second compound claim, however, always holds no matter what numbers we pick for x and y .