Functions with parameters

Functions with parameters and no return value The function discussed in the previous section is not very useful. It would much more useful if it was possible to tell the function how many lines to skip. That is the function should have an input parameter, which indicates how many lines should be skipped. The function skipthree() is now changed …

centre of gravity of the sector of a circle

Find the centre of gravity of the sector of a circle subtending an angle 2α at the centre of the circle? Ans: To find centre of gravity of the sector of a circle first draw the figure AOB is the sector of the circle subtending an angle 2α at the centre. Ox is the bisector of …

Characteristics of an algorithm

Characteristics of an algorithm : Let us try to present the scenario of a man brushing his own teeth (natural denture) as an algorithm as follows: Step 1. Take a brush Step 2. Apply the paste Step 3. Start brushing Step 4. Rinse Step 5. Wash Step 6. Stop If one goes through these 6 …

Concept of algorithm

Concept of algorithm: common man belief is that a computer can do anything that he imagines. It is very difficult to make people realize that it is not rally the computer but the man behind computer who does everything. How computer works through concept of algorithm?  In the modern internet world, man feels that just …

Fired bullet

In this post we will understand the property of fired bullet with an example. We will also understand the maximum height, distance and angle of a fired bullet required to the accurate targeting. According to Physics laws we can easily understand this. Example to understand the property of fired bullet When a fired bullet at 30⁰ …