Dependent field and dropdown values

Could you please help me to know how I can create/configure dependent dropdown values for an attribute and also the attribute which will be populated based on other attributes value?