Hi,
I want to write logic for cab management system with below details
There are 100 sector in a city having area code 1001 to 1100. Distance between each sector is 2 km and its takes 5 min to travel from one sector to adjacent sector. actual cost to company is 5 rs per km but they charge 10rs per km to customer. There are certain sectors on which cab is located.You have to book cab for a request received considering below points in your mind.
1. cab should reach 30 minutes before to the pick up time
2. Company should get at least 20%
profit.
I don't know what approach i should use to design it?Please guide me for designing the above.
Thanks in advance