how does a program work with the computer
Can you be more specific?
Ultimately, the inside of a computer is just streams of electrical signals going here, there and everywhere. Some of the signals, when they go to the CPU at the right time, trigger the CPU to do something, and advance a register ( memory location ) on the CPU called the Program Counter a certain number. When the CPU is done with that command, it gets another from the address that the program counter points to. That's the real basics of the real low-level workings. Interpreted programs ( Java, Python, Perl, JavaScript, PHP ) are converted from English into something that the interpreter ( which is usually a compiled program ) can execute at the low level.
There are two translators involved. Program and Process. Program is what you ask the computer to do. Process is what the computer does. Every program written, triggers a particular process that the computer should do. You program the computer to do 2+2 , the program triggers the add() process inside the computer, it then adds it and sends you the result. This is the high level explanation. If you want more detailed answer, write back!
Join our real-time social learning platform and learn together with your friends!