The task is to... sounds like homework!
I'll provide some food for thought
- You currently only check for absolute values if the value is negative, but what would happen if a positive value was above 200? (hint: you should likely use an additional non-nested if statement to check the second condition)
- Your use of warning and error are correct