Chapter 4: Problem 19
Suppose that sale and bonus are double variables. Write an if...else statement that assigns a value to bonus as follows: If sale is greater than \(\$ 20,000,\) the value assigned to bonus is \(0.10 ;\) if sale is greater than \(\$ 10,000\) and less than or equal to \(\$ 20,000,\) the value assigned to bonus is \(0.05 ;\) otherwise, the value assigned to bonus is 0
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.