Q1. Refactor below code to remove if-else logic by applying clean coding and design principle. public double calculateInsurance(double income) { if (income <= 10000) { return income*0.365; } else if (income <= 30000) { return (income-10000)*0.2+35600; } else if (income <= 60000) { return (income-30000)*0.1+76500; } else { return (income-60000)*0.02+105600; } } Q2. Create a screen which hits an api to show data in the list form. Try to write code with clean and objective coding structure.
Check out your Company Bowl for anonymous work chats.