clear //Given qa=2.5*10**-7 qb=-2.5*10**-7 a=15 b=15 //Calculation q=qa+qb C=(a+b)*10**-2 E=qa*C //Result printf("\n Total charge is %0.3f \nElectric dipole moment of the system is %0.3f Cm",q,E)