What is computer programming ? for lay man

Gaurav Polekar
2 min readDec 6, 2020

--

So computer is a electronic device which accept some input, processed it and gives some output.

But here we want an output that we want, So in order to take a desired output from computer we will require a specific logic to be perform based on input, that is a computer program.

For an user any electronic device accepts some input and perform its work.

Lets take an example of a LED bulb, it can be used as light source, so the desired output from a bulb is light.

We can control it by adding a simple switch.

We can on and off switch to get the work done of a bulb, because it has only 2 states on and off.

Now lets take a bit complex electronic device,

A seven segment display.

It can be used to display a digit, So it has 10 states in total.

To get desired output from this we will require multiple switches as an inputs.

To make a counter from it, we require certain circuit logic to perform we can call it a program for seven segment.

Similarly a computer is an electronic device which is very much complex then these devices and have many complex circuits and switches in computer’s main part we call it CPU (Central Processing Unit), that we need to turn on and off to get required output.

To perform required task from this CPU, we give signals to it. these signals are the Instructions and combination of multiple instructions are nothing but computer program.

But we do not always write direct instructions, yes because it will be always difficult for everyone to write program directly for CPU instructions. Instead we write program in some high level programming languages like C, C++, Java, Python, Java script etc.

These program then converted into actual CPU instructions and we get the required output.

Thanks for reading, feel free to ask questions in comments.

Originally published at https://www.completeyourgoal.com on December 6, 2020.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response