Undergraduate Physics & Computer Science Advice

AI Thread Summary
The discussion centers on the challenges faced by a student majoring in Physics who is struggling with a C+ programming course, particularly in translating concepts into workable code. Despite excelling in other sciences, the student finds computer science difficult and questions the relevance of programming in upper-level physics and astrophysics courses. Responses highlight that such struggles are common among physics majors and emphasize the importance of starting with simple programming exercises to build confidence. Additionally, the conversation points out the high withdrawal rate in the course may indicate issues with the teaching method rather than the student's abilities. Overall, the advice encourages persistence and seeking help from the instructor to improve understanding.
vladittude0583
Messages
40
Reaction score
0
Hey guys, I am currently taking Physics 2 with Calculus at my local community college and transferring to the university as a Physics major in Spring 2009. Furthermore, I am also taking COP2220 (C+ Programming) as a requirement for any transfer student seeking admission into the university's engineering or physics programs. I plan on completing my Bachelor's of Science in Physics and being admitted to graduate school to focus on Astrophysics.

Anyways, my dilemma is the COP2220 course. I took COP2220 in the summer, but had to withdraw because I did not understand the material nor the teacher (40% withdrawal rate). Anyhow, I am taking COP2220 with the same teacher I took for COP1000 (intro course) in Spring 2008, however, we used Python Programming Langauge in my COP1000 course. In COP2220, we are using C+ programming language. I have noticed that I understand the concepts when reading my COP2220 and understand about 75% of the programming codes for a given written software, however, I still seem to be having a hard time being able to translate the conceptual material into a workable programming code. If someone shows me the right process, then I can pretty much formulate the rest of the codes necessary for a workable program, but coming up with it on my own is tough. Is this pretty common for a physics major?

I must admit that being a physics major means that you probably have more intelligence than the average person, however, does that also mean that we should know everything or that everything is easy for us to learn? It just seems to baffle me because I can handle calculus, physics, chemistry, biology and almost any other science subject thrown my way, but computer science seems to be one field I just cannot grasp as easily - is this normal? Has anyone ever had this type of problem?

Also, how relevant is computer programming in the upper-level physics courses for the Bachelor's Degree and also that of Astrophysics in the graduate level courses?

Your advice would be greatly appreciated. Thanks.
 
Physics news on Phys.org
I'm doing my PhD in physics (high energy astrophysics) and I do quite a bit of programming - reducing data, modeling, statistics. It takes a while to catch on, but eventually you'll have enough background to know how to approach a problem. I'm currently teaching a few undergrads the basics of programming, and it's reminding me how this didn't come naturally at first - while it's so easy now, it wasn't always that way!
 
Yeah, I had this problem but ended up having a long career in programming :-)

By the way, did you mean C++ rather than C+? I've heard of (and programmed in some of...) C, C#, Objective-C and C+- languages. But I have never heard of C+. So make sure you're reading books on the right variant!

A 40% failure rate means it's the teacher's fault, not yours! Still your stuck with it, so let's see if we can find out what he's doing wrong. Is he throwing you in the deep end without easing you in with simple examples? If so:

Start by writing lots of very small simple programs. And I mean *really* simple. The classic is to get the program to print out "hello world". The next one would be to add 2 + 2 and print out the result. This is mainly, to get used to using the programming environment and all those strange brackets and programming constructs.

One of my many jobs was to help decide on an initial object oriented programming language for a beginner's course. We rejected C++, and chose Smalltalk, because C++ has that 25% of "tricky constructs" that make it difficult even to get a simple working program up and going.

Any problems you have are likely to be due to a simple trick that your teacher *should* be able to sort out. So bother him (or his boss!) if you have any problems, however minor or trivial they may seem. They deserve a lot of hassle for setting up a course with a failure rate like that!
 
Hey, I am Andreas from Germany. I am currently 35 years old and I want to relearn math and physics. This is not one of these regular questions when it comes to this matter. So... I am very realistic about it. I know that there are severe contraints when it comes to selfstudy compared to a regular school and/or university (structure, peers, teachers, learning groups, tests, access to papers and so on) . I will never get a job in this field and I will never be taken serious by "real"...
Yesterday, 9/5/2025, when I was surfing, I found an article The Schwarzschild solution contains three problems, which can be easily solved - Journal of King Saud University - Science ABUNDANCE ESTIMATION IN AN ARID ENVIRONMENT https://jksus.org/the-schwarzschild-solution-contains-three-problems-which-can-be-easily-solved/ that has the derivation of a line element as a corrected version of the Schwarzschild solution to Einstein’s field equation. This article's date received is 2022-11-15...
Back
Top