The snippet can be rewritten using the ternary condition as follows:
```
d = (p > 5000) ? (p * 5 / 100) : (p * 2 / 100);
```
This ternary condition checks if the value of `p` is greater than 5000. If it is true, the expression `(p * 5 / 100)` is assigned to `d`. Otherwise, if the condition is false, the expression `(p * 2 / 100)` is assigned to `d`.
Answers & Comments
Answer:
The snippet can be rewritten using the ternary condition as follows:
```
d = (p > 5000) ? (p * 5 / 100) : (p * 2 / 100);
```
This ternary condition checks if the value of `p` is greater than 5000. If it is true, the expression `(p * 5 / 100)` is assigned to `d`. Otherwise, if the condition is false, the expression `(p * 2 / 100)` is assigned to `d`.
Explanation:
Mark my answer as a Brainlist answer!!!