WHAT IS A COMPUTER PROGRAM

WHAT IS A COMPUTER PROGRAM

In our last publication, we talked about the basics of computers and CPU, where we saw that information inputted into computers has to follow certain instructions or algorithms in order to produce the desired output.

It turns out that those instructions that the computer has to follow are what we call “Computer Program or software.”

What does it really mean? Well, it is what we are going to learn in this post.

Computer Science pioneers in a way to make humans and machines getting into harmony or to communicate, they came up with a way to talk to computers, to give computer instructions through his language or computer program. It is a list of instructions given to the computer to follow in order to produce the desired output. It is like a cookbook for a chef that contains a list of instructions on how to make for instance a cake.

Those who learned or knew to write those instructions or creating those computer programs are programmers or developers.

In order for a machine to understand, it has to be in a computer’s language, which is BINARY (0’s and 1’s).

However, we as programmers are not writing those instructions in binary; we write it in what we call computer-programming language.

Then, why aren’t we writing in binary? Let us deep in a binary little bit.

Decoding binary

10110110

In order to decode the above binary number, we will go through steps.

1st step: we give each number a count order starting from right to left.

1   0   1   1   0   1   1   0 => binary

7   6   5   4   3   2   1   0 => order count from right to left

2nd step: is to take each count order to the power of 2 and calculate them

72       62    52   42   32  22  12  02 => order has been taken to the power of 2

128  64  32  16   8  4     2  1 => we calculate the power

3rd step: we take out all values of zero’s (0) then we add the remaining numbers to each other.

128 + 32 + 16 + 4 + 2 = 182

So, the binary 10110110 = 182 decimal.

That is how 182 can be represented in the CPU. If you think of it as circuits, that binary number is: On-off-on-on-off-on-on-off

Let us take for instance my name Alex in binary

A = 0110111

l = 1101100

e = 1100101

x = 1111000

In one line: Alex = 0110111 1101100 1100 101 1111000

As you can see, as humans, we cannot write a complex software or program with binary, because it will take time and a lot of effort even impossible. The reason why computer scientists created programming languages.

Programming Language is a formal comprising a set of instructions that produce various kinds of output.

All depend on what you want to achieve as output.

If you want to create a game or a gaming program, you need the language that is best for the game; If you want to create a website or program for the web, you need languages that are best for the websites; If you want to create any software or application, you need specific programming language for that software.

Here is a list of few popular programming languages:

  • JavaScript Language
  • Python Language
  • C / C++ / C# Language
  • Ruby Language
  • Java Language
  • PHP Language, etc.

Without software or program, the computer is useless and is like all other toys for children to play with.

Then how does the program we wrote could be converted to binary for a computer to understand?

Well, when a programmer finishes to program, he/she has to run or to execute that program for production to become a software. During that time, it has to go through a process of conversion that we call “Compiling” or “Interpreting” to become an executable product, who is machine code or binary code that the CPU can follow to produce the desired output.

Let us take a known example to illustrate a computer program. We take for instance a cashier software or POS (point of sale). A cashier software needs first input before processing and output information. That input is when the cashier scans the barcode of your product or type in the price or the barcode. For the CPU to proceed, it needs instructions from the memory on how to deal with that kind of input. That instruction is a computer program or cashier software. You can read on how a computer works in my previous post.

In conclusion, we talked about the computer program by demonstrating how binary is decoded and that is the reason why we are not writing programs in binary numbers but we use programming languages to develop our software. We finished by seeing an example of a software or computer program on the post of sale that cashier uses.

Thanks for reading.

By Alexis Ange Dauli, Web Developer.

This Post Has 45 Comments

  1. Uta

    Hello there! Do you use Twitter? I’d like to follow you if that would be
    okay. I’m undoubtedly enjoying your blog and
    look forward to new posts.

    1. Alexis Dauli

      Hi Uta,
      Thank you for the positive feedback. I really appreciate it.
      Yes, I’m on Twitter but not frequently.
      You can follow me here:
      @AlexisDauli on Twitter.

      And Thanks

  2. I Fashion Styles

    Hi, i think that i saw you visited my website so i came to 搑eturn the favor?I am trying to find things to improve my website!I suppose its ok to use some of your ideas!!

    1. Alexis Dauli

      Hi friend. Thanks for coming here. For sure, you can use some of my ideas.

  3. Fashion Styles

    Hey there, I think your site might be having browser compatibility issues. When I look at your blog in Safari, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, fantastic blog!

  4. Oh my goodness! Impressive article dude! Many thanks,
    However I am going through problems with your RSS. I don’t know the reason why I can’t subscribe to it.
    Is there anybody else having similar RSS issues? Anyone that knows the solution can you kindly respond?

    Thanks!!

    1. Alexis Dauli

      Hi friend, thanks for the wonderful feedback. I am going to sort it out with the new subscription integration soon. thanks

  5. I think the admin of this web site is in fact working hard in favor of his website, for the reason that
    here every data is quality based information.

    1. Alexis Dauli

      Hi friend, thanks for the wonderful feedback. I really appreciate.

  6. Hairstyles

    My brother recommended I might like this blog. He was entirely right. This post truly made my day. You can not imagine simply how much time I had spent for this information! Thanks!

    1. Alexis Dauli

      Hi friend, thank you and your brother. I am Glad that I could help. I’m thinking of putting together the content of this blog to an ebook for you my readers.

  7. vex 5

    Wonderful beat ! I would like to apprentice while you amend your
    web site, how can i subscribe for a blog web site?
    The account helped me a acceptable deal. I had been tiny bit acquainted of this
    your broadcast provided bright clear idea

    1. Alexis Dauli

      Thank you friend for coming.
      I will realise new content soon, I do so every month or 2 weeks after. You can subscribe to be notified when I realise new content.

  8. hd film izle

    Hello! This post couldn’t be written any better!
    Reading through this post reminds me of my old room mate!
    He always kept chatting about this. I will forward this article
    to him. Fairly certain he will have a good read. Thank you for sharing!

  9. sex

    Ale super hihihi

  10. porn 18

    The best part is that he literally gets the first letter wrong. Pavel Sky Keila

  11. Please let me know if you’re looking for a article author for your blog.
    You have some really great posts and I think I would
    be a good asset. If you ever want to take some of the load off, I’d really like to write
    some content for your blog in exchange for a
    link back to mine. Please blast me an e-mail if interested.
    Thanks!

  12. Free Stuff

    Undeniably imagine that which you stated. Your favorite justification appeared to be on the net the simplest factor to remember of. I say to you, I certainly get irked while other people think about concerns that they just do not know about. You controlled to hit the nail upon the highest as neatly as defined out the whole thing without having side-effects , other people could take a signal. Will probably be again to get more. Thank you

  13. 먹튀폴리스

    Pretty nice post. I just stumbled upon your blog and wanted to mention that
    I have truly loved browsing your weblog posts.
    After all I will be subscribing for your feed and
    I’m hoping you write once more very soon!

  14. Fashion Styles

    Hi there, just changed into alert to your blog thru Google, and found that it is really informative. I am gonna watch out for brussels. I will be grateful in the event you continue this in future. Many people shall be benefited from your writing. Cheers!

    1. Alexis Dauli

      Hi friend. Thank you for this wonderful feedback. And you are welcome. Cheers

  15. I have seen that sensible real estate agents everywhere you go are warming up to FSBO Advertising. They are noticing that it’s more than just placing a poster in the front place. It’s really in relation to building interactions with these traders who at some time will become consumers. So, whenever you give your time and effort to supporting these sellers go it alone – the “Law of Reciprocity” kicks in. Great blog post.

  16. Beauty Definition

    Greetings! This is my 1st comment here so I just wanted to give a quick shout out and say I really enjoy reading through your posts. Can you recommend any other blogs/websites/forums that cover the same topics? Thanks!

    1. Alexis Dauli

      Hi friend, thank you for the comment. I don’t have a website to recommend right now, but I will do that when I found one. Thanks

  17. One thing I want to say is the fact that before getting more laptop or computer memory, have a look at the machine within which it will be installed. Should the machine is actually running Windows XP, for instance, the actual memory threshold is 3.25GB. The installation of above this would purely constitute a new waste. Make sure one’s motherboard can handle an upgrade quantity, as well. Good blog post.

  18. liplop.vn social

    Having read this I thought it was very informative.
    I appreciate you spending some time and effort to put this
    informative article together. I once again find myself personally spending a significant amount of time
    both reading and commenting. But so what, it was still
    worth it!

  19. Bareback

    What’s Going down i am new to this, I stumbled upon this I’ve
    discovered It absolutely helpful and it has helped me out loads.
    I hope to contribute & aid other users like its aided me. Great job.

  20. useful website

    Everything is very open with a very clear clarification of the issues.
    It was really informative. Your site is very helpful.

    Thanks for sharing!

Leave a Reply