Solve the all parts of given question:
Question: A straight, non conducting plastic wire 8.00cm long carries a charge density of 130nC/m distributed uniformly along its length. It is lying on a horizontal tabletop.
Part A: Find the magnitude and direction of the electric field this wire produces at a point 5.00cm directly above its midpoint.
Part B: If the wire is now bent into a circle lying flat on the table, find the magnitude and direction of the electric field it produces at a point 5.00cm directly above its center.
Please explain how you came to your conclusion.