Definitely don’t give up! If everyone is struggling, is the teacher running the class more like a college course where exams are curved? My D’s AP physics teacher did that and the means in exams were low but semester grades were strong and people did well on the AP exam.
Talk to your teacher. Maybe consider using Kahn academy to shore up concepts but don’t give up on EE