No. It is not possible to write the above code using switch statement.
Following are the difference between switch and if else if ladder.
1. Switch can test only for equality but if can evaluate a relational or logical expression
2. If else is more versatile
3. If else can handle floating values but switch can not
4. If the test expression contains more variable if else is used
5. Testing a value against a set of constants switch is more efficient than if else