1. Chapter 5 The if Statement Conditional control structure, also called a decision structure Executes a set…