Skip to main content

Posts

Showing posts from November, 2019

A Comparison between a German Shepherd and a Belgian Shepherd

While I was working as a police officer I had an opportunity to train and work with an Alsatian or German Shepherd Dog (GSD). They look vicious because of their pixie ears. They are good for use as drug dogs or patrol dogs. They can weigh above 30kg and can be quite huge in comparison to most dog breeds. I remember seeing a Malinois or Belgian Shepherd Dog (BSD) on a TV show and I wished I could one day own that kind of dog. I eventually had an opportunity to train as well as handle a BSD and now I am ready to give a comparison between the two. Food Rations
GSDs require slightly more rations than BSDs to keep nourished. Malinois can destroy empty food bowels so ensure you remove them soon after they finish eating.Sniffing
They are at par, however BSDs move with great speed and are a marvel to watch when they are working.Agility
Alsatians are outdone by BSDs in this category. GSDs also usually suffer from hip dysplasia and so you have to be careful when doing agility exercises.Agressio…

The Role of a Web Designer in Web Development

Quite often , when we talk of web development we tend to forget about web design. This is a very important subject. For a website to look splendid and to have useful features, it all starts with a creative designer. I urge anybody trying to get in the field of web development to also consider web design. Let me elaborate on the steps that a website goes through when in development.A web designer, someone with graphic design skills, creates a brand- if it was not yet created. A brand means a logo, colours and fonts associated with a business. These must resonate with everything related to the company. It is the job of the web designer to choose what colours to use and the fonts as well as come up with a logo for inclusion on the website. The web designer does not necessarily need to know HTML or CSS although it will be an advantage. After deciding on the resources needed for the web pages, the designer creates a layout of the web pages and comes up with an illustration called a wirefra…

How Important is Yandex to A Digital Marketer?

I have come up with an argument and I would like the reader to consider whether it is valid or not.  Here is the argument: If it is a a major search engine then I should submit a site map using the search engine's webmaster tools.  Yandex is a major search engine. Therefore I submitted a site map. Is the argument valid?

If you are a digital marketer I would like to hear your answer. The above argument can be validated using mathematical predicate logic and truth tables. However not all digital marketers are mathematicians therefore I have come up with reasons why Yandex is worth considering in an SEO strategy. Let me first define what a search engine is so as to rope in digital marketing newbies in the conversation.

Search engines are web application which use software programs called crawlers or bots search the internet and gather information. The information which the crawlers collect is then stored in a database base which is referred to as and Index. If a page is indexed it …

Which Desktop Browser Will Dominate in 2020?

In 1991 Tim Berners-Lee introduced the hyper text trasfer protocol which is one of the best things that ever happened in the information technology and communication sphere. This led to the development of the Mosaic web browser and finally Netscape browser was born. Netscape's creation is believed by most people to have led to the internet explosion which occurred between 1997 and 2000. Around1993 when Netscape was introduced, it dominated the market until it was overtaken by Internet Explorer. That was the early history of browser's but today we still see some stiff competition among companies which develop web browsers. Some people think that whoever dominates the browser market will dominate the internet. How true is that, and who will dominate in 2020? Chrome is in my humble opinion still holding the crown in 2019 on the web browser wars, but will that streak continue in the next year? Chrome is a favourite among web developers like myself and true to the notion that whoe…

Information Technology Basics

What is Information Technology?
It is the use or study of all the technology involved in collecting, storing , sharing and retrieval of data or information. It has three main components which are the computer, computer network and know-how. I shall first look at computers in detail.Computers are composed of hardware and software. There are five categories of computers but they generally have the same features. The classifications of computers are, Mainframe, Supercomputer, workstation, minicomputer and microcomputer.Hardware
The physical components of the computer. There is basically the system unit and peripheral components which are devices connected to the system unit. The peripheral devices are classified as either output or in put devices, though some can be both like a hard drive, a monitor with a touch screen or a printer with a scanner. Output devices
The most common output devices are  monitor, speakers and printer and hard drive.Input devices
The commonly used input devices …

C Program To Check If a String is a Palindrome

A C program to check if a string is a palindrome or not.
It uses the strcmp() function to compare the strings, therefore, you must include the string.h preprocessor link.


Egyptian Binary

The Egyptian Binary is a method to calculate the product of two numbers by mainly using addition.
The following is the algorithm

1.0  Start
2.0  Get a,b and sum
    sum=0;
3.0  While a>=1

        3.1.0  If a%2>0

                 3.1.1 Start_If
                 3.1.2 sum=sum+b;
                 3.1.3 End_If

        3.2  a /=2;
             b +=b;

4.0 Display sum
5.0 End

The following is the source code for the C Program.

C Program To Check Whether a Given Number is Prime

(c)       Write a C program that will check whether a given number is prime number or not.  You may find the hint below useful. 

Definition of prime number:
It is a natural number greater than one and has not any other divisors except 1 and itself. In other words, we can say which has only two divisors 1 and the number itself.
For example, 5 its divisors are 1 and 5. Note: 2 is the only even prime number.
hint The logic for prime number
Take a loop and divide the number from 2 to number. If the number is not divisible by any of the numbers then print it as a prime number.       [10]

C Program To Calculate Water Bill

QUESTIONS
1.You need to show how to calculate the charges for using water for a particular month that is provided by the Water Utility Company. Charges are calculated based on this information: •    Outstanding payment amount •    Previous meter reading •    Current meter reading Payment rates are given as: 0 - 15 m3                      :     $0.42 per m3,

15.1 - 40 m3:     $0.65 per m3, 40.1 m3 and above      :     $1.05 per m3  with a minimum payment of $5.00 (a)    State the input and output of this problem. [2] (b)    State the formula involved.[2] (c)     Give a detailed algorithm for this problem.[6] (d) Write a program that will implement your algorithm[10]
Source Code

Continue and Break Statements in C

The following code snippet shows how 'continue' and 'break' statements affect a loop.

The output is as follows:

pi is 3.140000 
 printing will end at 4 and x is now 6 
printing will end at 4 and x is now 5 
printing will end at 4 and x is now 4 
x (3)is now less than PI and program stops at x=0 
x (2)is now less than PI and program stops at x=0 
x (1)is now less than PI and program stops at x=0 
x (0)is now less than PI and program stops at x=0