Chapter 3: Problem 7
Write an if statement that assigns 0.2 to commissionRate if sales is greater than or equal to 10000.
Short Answer
Expert verified
Question: Write an if statement to assign a commission rate of 0.2 if the sales amount is greater than or equal to 10000.
Answer:
```python
sales = 0
commissionRate = 0.0
if sales >= 10000:
commissionRate = 0.2
```
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.