“Programming” involves teaching a computer how to solve problems for you.
Before you can teach a computer how to solve a particular problem, you need to be able to solve it yourself - this is where the “logic” comes in.
Teaching a computer how to solve problems is one of the best ways for people to improve their own general problem solving skills.
But, before you can teach a computer how to solve problems, the two of you are going to need to be able to communicate.
Computers can’t speak our language, so if you want a computer to help you solve problems, you are going to have to learn a language that the computer understands. Using one of the languages that a computer understands to solve a problem is sometimes referred to as “coding”. This term dates back to the time when one had to program computers using “machine code”. Thanks to Grace Hopper, we now program computers in “high level”
languages, which are much closer to English. The computer actually translates these high level languages into its own native language (i.e. machine code) using a program called a “compiler”. CS majors, computer engineers, and electrical engineers will take a course where they write programs in machine code (to better understand how the underlying computer hardware works), but you will not have to learn machine code.
There are a number of different “high level” languages that computers understand. Just like human languages, some are easier to learn than others. Some are better for solving certain types of problems than others. Some were designed for industrial use, while others were optimized for teaching introductory programming. Your school chose one particular language for their introductory programming class. It would be good to find out what language they chose if you want to get an early start.
Computers are extremely literal and precise. This is both their strength and their weakness. When it comes to languages, they are obsessed with correct grammar and syntax.
As a result, learning to communicate with computers takes both practice and patience - but once you develop a good relationship, you will be rewarded with a companion that is willing to work on your problems tirelessly, night and day, with no complaints.
Good Luck!
https://en.wikipedia.org/wiki/Grace_Hopper