Activity 2.5 - If Functions
Activity 2.5 - If Functions
Ex. 01
If qty. is equal to 0, output "Reorder", otherwise "In Stock"
Item Quantity Status
Pipe 0 Reorder
Valve 8 In Stock
Flange 0 Reorder
Ex. 02
If a staff member has at least 5 years of experience, they earn their base income plus 8% commission.
If they have less than 5 years of experience, they earn their base income plus 5% commission.
Use absolute references for the commission rates.
Staff Yrs. Exp. Base Income Total Commission
Fred 4 $ 4,375.00 $ 4,593.75 5%
Bob 8 $ 3,890.00 $ 4,201.20 8%
Sally 5 $ 4,150.00 $ 4,482.00 8%
Cathy 7 $ 4,400.00 $ 4,752.00 8%
Place your answers in the blue cells.
Ex. 01
If the staff member has greater than or equal to 6 months at the company
AND they have completed training, then output "Yes" to probation over, otherwise "No".
Staff Months at Company Training completed? Probation over?
Bob Smith 7 No No
Sally O'Malley 4 Yes No
Jason G. 4 No No
Jenny D. 9 Yes Yes
Ex. 02
If the staff member has greater than four years at the company
OR they have won an award, then "Yes" to raising pay, otherwise "No".
Staff Years at Company Won Award? Raise pay?
Bob Smith 3 Yes Yes
Sally O'Malley 8 Yes Yes
Jason G. 7 No Yes
Jenny D. 2 No No
Facilities Inventory