I'm pretty upset

I’m not sure if this is the right place to post this. I am new to CC.

I am a computer engineer major and I plan to minor in CS soon. I had a 4.0 last semester and this semester I got a D in physics and a B in the lab with it. I plan to retake both. If I do, I’ll again have a 4.0. Regardless, I want to go to UNC Chapel Hill for CS grad school. Will this diminish my chances of graduate school?

If you retake the class and it replaces your grade with that 4.0 then I wouldn’t imagine that it would hurt your chances, and even if it did it probably wouldn’t be by much.