# Monthly Archives: November 2015

## Programming Motivation!

http://www.techtunes.com.bd/programming/tune-id/125550

https://blog.codechef.com/2011/04/04/programmer-of-the-month-for-april-2011-md-mahbubul-hasan/

Another method:

With while loop:

## Uppercase to Lowercase

Lowercase to Uppercase

Uppercase to Lowercase

another method:

## Area of Circle using function

for formula: http://www.mathsisfun.com/area.htm

code:

We have to always remember that value that define is always pass from main function to customized function named by user so here r=3 is passing to function britto and then the britto formula pi*r*r is applying and returned the value and it is printed in the main function where the variable defined as khetrofol.

Here pi declared as global variable with it’s value.

## Find Maximum and Minimum and Summation value from array

Did this problem from subeen vai’s book.

For maximum value:

For minimum value:

Summation:

Average:

Will give here

## Windows 7 laptop randomly freezes

My laptop was randomly freezing.So After  a lot of hassle I have found that  Nvidia graphics driver is the criminal for this situation.May be my laptop hangs for this randomly or bios could not find the real driver to make companion with the Nvidia PhysX GPU.

And another cause I have found that my old version adobe master collection CS 6 also making deadlocking situation with.windows.

Solution:
First clean install windows then update it fully.Then install driver one by one that is needed.Then install software you need and keep records.If anything harms for you then uninstall this soft after a hard restart if it is freezed thatt time.Or you can make login to ubuntu if it is installed in your pc then delete those files are hampering your work.And work perfectly in windows

Now everything is fine.Alhamdulillah

## Reverse Array/Array Copy

code:

Used Subeen vai’s book for the example

another:

## LCM – Least Common Multiple

Multiple of 3 is
3×1=3
3×2=6
3×3=9
3×4=12
3×5=15
3×6=18
3×7=21
3×8=24
3×9=27
3×10=30

Multiple of 4 is
4×1=4
4×2=8
4×3=12
4×4=16
4×5=20
4×6=24
4×7=28
4×8=32
4×9=36
4×10=40

Here in 3 and 4 mutilples common is 12
and it is only one value and so it is the lowest also then but if there were some more values than result could be something changed.

So here LCM=12
Here I implemented the code
applied this formula
lcm(a,b)=a*b/gcd(a,b);

code goes here :

## GCD Greatest Common Divisor(Factor)/Highest Common Factor

এখানে লজিকটা হচ্ছে…Here the logic is:
For 12:
1×12=12
2×6=12
3×4=12
So factor of 12=1,2,3,4,6,12
(We don’t need the negative values here)

For 30:
1×30=30
2×15=30
3×10=30
5×6=30
So factor of 30=1,2,3,5,6,10,15,30

Now which is the common factor among 12 and 30
So factor of 12=1,2,3,4,6,12
So factor of 30=1,2,3,5,6,10,15,30

common factor=1,2,3,6
Largest common factor here=6

So now if we divide 12/6 then we get 2
and for 30/6 we get 5

that is all divided perfectly so the logic should be like this

1.Find all the factors of each number
2. Circle the common factors
3. Choose the greatest of those
4. Divide the existing number with greatest common factor thern also get a perfect divide

Here is my code: