//Given that d = 1.5*10^-2 //in meter v = 4.0 //in m/s B = 0.050 //in T //Sample Problem 29-2a printf("**Sample Problem 29-2a**\n") //force is in right direction printf("The right surface will be at high potential\n") //Sample Problem 29-2b printf("\n**Sample Problem 29-2b**\n") F = v*B //force per unit charge deltaU = d*F //energy per unit charge = potential difference printf("The potential difference between the two surface is %1.1eV", deltaU)