A particle with charge q1= 7 nC, located at the position 〈5.5×10-3,0,0〉 m, creates an electric field around it. Find the electric field at locations 〈1.1×10-3,0,0〉 m and 〈0,1.1×10-3,0〉 m.
Complete a VPython program to calculate the electric field of one charge at two observation locations, create and scale an arrow to represent the electric field at a particular observation locations.
++Notes: Make sure that you pay attention on correct spelling, capital or small letter cases. Use scientific notation like (5e10) and make sure that you don't use space when completing the code lines. Ex.-no space:F=mu*Fn ; space: F = mu * Fn.++
from visual import*
k=9e9
q=Answer
sf=1.e-9
charge=sphere(pos=vector(Answer,0,0),radius=5e-4, color=color.red)
obsA=vector(Answer, 0,0)
obsB=vector(0,Answer ,0)
r1=Answer
r2=Answer
rr1=arrow(pos=charge.pos,axis=r1,shaftwidth=.2*charge.radius,color=color.red)
rr2=arrow(pos=charge.pos,axis=r2,shaftwidth=.2*charge.radius,color=color.red)
E1=k*q*Answer/ mag(r1)**2
E2=k*q*Answer/ mag(r2)**2
Earrow1=arrow(pos=Answer,axis=Answer*E1,color=color.yellow)
Earrow2=arrow(pos=obsB,axis=sf*E2,color=color.yellow)