Explain the role of Mendelian laws in understanding patterns of inheritance, providing specific examples to illustrate the principles of segregation and independent assortment.