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 80 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!

  21. dusk to dawn lamp

    I’m not that much of a internet reader to be honest but your
    blogs really nice, keep it up! I’ll go ahead and bookmark your website to come back later on. Many thanks

  22. Very nice post. I just stumbled upon your weblog and wanted to say that I have really enjoyed browsing your blog posts.
    After all I will be subscribing to your feed and I hope you write again soon!

  23. agnes lampkin

    Thank you for the good writeup. It in fact was a amusement account it.
    Look advanced to far added agreeable from you! However, how could we communicate?

  24. Every weekend i used to visit this site, as i
    wish for enjoyment, since this this site conations truly good funny stuff too.

  25. This post will help the internet users for creating
    new website or even a weblog from start to end.

  26. modo Lamp

    Wow, marvelous blog layout! How long have you been blogging for?
    you made blogging look easy. The overall look of
    your web site is great, as well as the content!

  27. Usually I do not read post on blogs, however I would like to
    say that this write-up very pressured me to try and do it!
    Your writing style has been amazed me. Thanks, very nice article.

  28. jwda lamp marble

    Howdy would you mind letting me know which hosting company you’re
    utilizing? I’ve loaded your blog in 3 completely different browsers and I must say this blog loads a lot faster then most.

    Can you suggest a good hosting provider at a reasonable price?
    Kudos, I appreciate it!

  29. What’s up, its good paragraph on the topic of media print, we
    all know media is a great source of data.

  30. This piece of writing will help the internet users for creating new web site
    or even a blog from start to end.

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

  32. serge mouille nz

    You made some decent points there. I checked on the web for more info about the issue and found most people will go along with your views on this web site.

  33. Lampe Gras Cheap

    I visit daily some sites and information sites to read articles or reviews, however this website presents feature based writing.

  34. sites.google.com

    Oh my goodness! Impressive article dude! Thanks, However I am encountering issues with
    your RSS. I don’t understand the reason why I am
    unable to join it. Is there anybody else getting identical RSS issues?

    Anybody who knows the solution can you kindly respond?

    Thanx!!

  35. sites.google.com

    You’re so interesting! I don’t think I’ve read through a single thing like this before.
    So great to discover someone with a few
    unique thoughts on this issue. Seriously.. thanks for
    starting this up. This site is one thing that’s needed on the web,
    someone with a bit of originality!

  36. Nice post. I used to be checking constantly this
    blog and I’m impressed! Extremely helpful information particularly
    the remaining part 🙂 I handle such information a lot. I was seeking this particular information for a very long time.
    Thank you and good luck.

  37. Your style is so unique in comparison to other folks I’ve read stuff from.

    Thank you for posting when you’ve got the opportunity, Guess I’ll just bookmark this blog.

  38. Great work! This is the kind of info that should be shared
    across the web. Disgrace on the search engines for now not positioning this submit higher!

    Come on over and consult with my website
    . Thanks =)

  39. Wonderful items from you, man. I’ve take note your stuff previous to and you are just too magnificent.
    I really like what you have got here, really like what you’re saying and the best way through which you assert it.
    You are making it enjoyable and you continue to care for to stay it smart.

    I can’t wait to read far more from you. This is actually a
    tremendous web site.

  40. First of all I would like to say terrific blog!
    I had a quick question which I’d like to ask if you don’t mind.
    I was interested to know how you center yourself and clear your head prior to writing.
    I’ve had difficulty clearing my thoughts in getting
    my ideas out. I do take pleasure in writing but
    it just seems like the first 10 to 15 minutes are lost just trying to figure
    out how to begin. Any ideas or hints? Cheers!

  41. hey there and thank you for your info – I’ve certainly
    picked up something new from right here. I did however expertise some technical issues using this web
    site, since I experienced to reload the site lots of times previous
    to I could get it to load properly. I had been wondering if your web hosting is OK?
    Not that I’m complaining, but sluggish loading instances
    times will very frequently affect your placement in google and can damage your high quality score
    if ads and marketing with Adwords. Well I’m adding this RSS to
    my e-mail and could look out for a lot more of your respective exciting content.
    Make sure you update this again soon.

  42. vp globe kopi

    Oh my goodness! Incredible article dude! Thank you so much, However I
    am experiencing difficulties with your RSS. I don’t understand why I am
    unable to subscribe to it. Is there anybody getting similar RSS issues?
    Anyone who knows the answer can you kindly respond? Thanx!!

  43. sites.google.com

    Wow, marvelous blog structure! How long have you ever been blogging for?
    you make running a blog glance easy. The overall glance of your site is great,
    as well as the content material!

  44. sites.google.com

    It’s an awesome paragraph designed for all the online users; they will take benefit from it I am sure.

  45. sites.google.com

    Just desire to say your article is as surprising.
    The clarity for your post is just spectacular and that i can think you’re an expert in this subject.

    Well along with your permission let me to grab your RSS feed to stay
    up to date with coming near near post. Thank you 1,000,000 and please keep up the gratifying work.

  46. Wonderful goods from you, man. I have have in mind your stuff prior to and you’re just extremely wonderful.
    I really like what you have got right here, really like what you’re stating and the way during which you say it.
    You’re making it entertaining and you continue to take care of to
    keep it smart. I can not wait to read far
    more from you. That is really a great site.

  47. sites.google.com

    Hmm is anyone else having problems with the pictures on this blog loading?
    I’m trying to determine if its a problem on my end or if it’s the blog.
    Any feed-back would be greatly appreciated.

  48. Great post however I was wanting to know if
    you could write a litte more on this subject? I’d be very grateful if you could elaborate a little bit further.
    Cheers!

  49. Antoinette

    I was able to find good advice from your blog posts.

  50. I relish, lead to I discovered exactly what I was having a look for.
    You have ended my 4 day long hunt! God Bless you man.
    Have a great day. Bye

Leave a Reply