Wednesday, July 30, 2014

how to find out the sum of the fibonacci number ??

how to find out the sum of the fibonacci number ??

first of the simple thing here:

What is the fibonacci number ?

So it is the series start as below:

0 1 1 2 3 5 8 13 21.......

you can find out this one easily: (i run this programme in Dev c++ 4.2.1)

1) for the short number:

#include<stdio.h>
#include<conio.h>
int main()
{
    int x,y,sum,n,i;
    x=0,y=1;
    printf("how much number you want to print:");
    scanf("%d",&n);
    for(i=1;i<=n;i++)
    {
        sum=x+y;
        x=y;
        y=sum;
    }
    printf("\nthe sum of the fibonacci number is=%d",sum);
   
}

2)

the real logic is come now because what you can think for the large number.because the above programme can only count the sum around the 9 digit only.
you can check this one by the find the sum first 48 number.it will be negative means the answer can not store in the int. so we apply our logic here.



#include<stdio.h>
#include<conio.h>
int main()
{
    int i,k,j=1,temp,a[100]={'0'},b=0,c[100]={'0'},n;
    a[0]=1,c[0]=0;      //initialize the value of the two array
    printf("how many value you want of fibonacci number :");
    scanf("%d",&n);
    for(k=1;k<=n;k++)
    {
    for(i=0;i<=b;i++)
    {
              if(temp>0)       //case 1
         
            {
                j=a[i]+c[i]+temp;
                c[i]=a[i];
            a[i]=j%10;
            temp=j/10;
                //  printf("the value of i=%d a[%d]=%d c[%d]=%d b=%d\n",i,i,a[i],i,c[i],b);  //to understand the process
                }
            else            //case 2
            {
            j=a[i]+c[i]+temp;
            c[i]=a[i];
            a[i]=j%10;
            temp=j/10;
            //    printf("the value of i=%d a[%d]=%d c[%d]=%d b=%d\n",i,i,a[i],i,c[i],b);     //to understand the process
            }
        if(temp>0 && i==b)   //case 3
                {
                a[i+1]=temp;
                temp=0;
                b++;
                i++;
                //    printf("the value of i=%d a[%d]=%d c[%d]=%d b=%d\n\n",i,i,a[i],i,c[i],b);   // to understand the process
                }
       
    }
}
    for(k=b;k>=0;k--)
    {
        printf("%d",a[k]);
    }
}




it will work for any number of digit value. Just increase the value of the two array when needed to store more digit.but logic of array use here is awasome guys..




Wednesday, February 5, 2014

How to Shutdown,Hibernate,Log off or Restart your laptop ?

      Hai guys resently i listened something  from my  friends which one inspire me to create something for them. Actually it happened with some others of us also. But we are may be not focus on that type of the problem and also their solutions.

       My friends problem is that whenever he is watching a movie or something at the time he is sleeping.That's why his laptop keep starts. And it is hibernated after when the battery will be die .


       Form this incident i just think if we develope the simple softwere which can be solve the simple problem. Then this softwere is implemented by me. which i give the name onsleeper.exe  


      you can easily use for your laptop or pc:-


Step 1:-


 download the onsleeper.exe   then click on the " create download link " on that page..


Step 2:-


now you can run the softwere and then you got the starting screen like below:



Step 3:-
now you have to give the time in seconds. After this time your pc or laptop will be...what ever you choice..

form these all thing you give your choise.
Ex; if you print 2 then you laptop will be shutdown after the given time...


try it ....it is too much easy and i wish it will help you a lot...

thanks !!!!! 

                                                                                                                  Amul@Butter



Friday, October 25, 2013

solve this pattern...

Make the program in the C to print the following pattern...

0
10
010
1010
01010

try it !!!!

Tuesday, October 22, 2013

Career in the Softwere Engineer

For who desire their  Career as Softwere Engineer:- 


Hai guys today i want to write for the only Softwere Engineer who want to hire in the world's best Tech. Compnies.
    
    I googling for the softwere engineering. At that time i found some site which one help me to lot about the saleries,experience and some interview quetions towards softwere engineer. In those all my favourite site is the http://www.careercup.com/

    Here where you can find the lot of the information about the Softwere engineer. And one more thing is that they provide you two ebooks which are:

1. Cracking the coding Interview
2. The Google Resume

I read some portions of these books and  according to me both are too much helpful to us and it is mindblowing !!!!!

Yap one thing anther is that they also provide  to you some interview video on the Youtube. So with that you can learn the process of the interview....

I recomanded to you all to pass one time from this site if you are crazzy for the softwere engineering career....


                                                                                                                Amul@Butter

Sunday, September 1, 2013

Test your IQ : Solve the Puzzle

Teste your IQ :------

If you think you are logically powerful and solve any problem then i give you mind play puzzle...
Teste your IQ :------

 Read the information given below and answer the questions 
that follow:
  
(1)There is a group of five girls. 

(2)Kamini is second in height but younger than Rupa.

(3)Pooja is taller than Monika but younger in age. 

(4)Rupa and Monika are of the same age but Rupa is 
tallest between them. 

(5)Neelam is taller than Pooja and elder to Rupa.   

Ques:-

Q1.If they are arranged in  the ascending order of heights, 
who will be in the third position?  

(a) Monika        (b) Rupa            (c) Monika or Rupa  
(d) Date Inadequate   (e) None of these   

Q2.If they are arranged in a the descending order of their 
ages, who will be in the fourth position?  

(a) Monika or Rupa       (b) Kamini or  Monika    c) Pooja     
(d)Data Inadequate              (e) None  of these   

Q3.To answer the question “who is the youngest person in the 
group”, which of the given statements is superfluous?  

(a) Only (1)        (b) Only (2)         (c) Only (5)      
(d) either (1) or (4)        (e) None    

                                                                                        From:-
                                                                                      Amul@Butter
                         http://buttercod.blogspot.com/                                    

                                                   

Sunday, July 21, 2013

Best coder is the best creator of the next generation

What is the best for next generation ?

       In this technology age there is only that person is powerful who has a good idea about tech. It is the best age foe coding and programming......Amul@Butter

No matter what you do, it’s going to be helpful to learn to code. So we should probably start teaching it in school.



Not every coder job involves working in a blue chip tech company or Silicon Valley startup
.
Amul@Butter
As British technologist, Conrad Wolfram said in a TED talk on teaching math with computers: “In the real world math isn’t necessarily done by mathematicians. It’s done by geologists, engineers, biologists, all sorts of different people.”


The same applies for computer science. Just ask Alex Tran, fellowship program manager at Code for America, a nonprofit “civic startup accelerator” that sees coding as a new form of public service. Each year, he works with more than 20 startups and fellows who build a variety of apps and online programs to improve how citizens engage and interact with their communities. So far, they’ve built tools for services like community disaster management, food stamps, virtual townhalls, student data interoperability, and even snazzy icons.
"Coding literacy is a huge part of our future as a country, and it will be integrated into every aspect of our government and every other sector that people will work in,” says Tran. “In the future, there will only be more opportunities for young people to go into careers where technical and public sectors intersect.”

Computer science is transforming industries--and igniting a renaissance in the creating of things. Just as in the 1950s, when writing and communications skills became the essence of the paradigmatic "white collar" job, increasingly every artisan, manufacturer, and entrepreneur who makes something will need to code.

Mitchel Resnick, director of the Lifelong Kindergarten group at the MIT Media Lab, calls coding “an extension of writing.” Mashable describes it as “21st century literacy.” Just as we write words to map and make sense of ideas, we code to organize and present data in meaningful ways. We write to tell our stories through essays and articles; so, too, do websites and apps offer their own narratives about the world. Like writing, coding can help channel our creativity and solve problems. (And both “good” writing and coding ought to be elegant, clear, and concise.)

At a deeper level, the push to introduce coding to younger students reflects a larger, back-to-the-future movement to return creativity, tinkering, and exploration to the learning process. There’s been a revival of Makerspaces and other garage workshops that use hands-on activities to turn abstract principles into tangible objects. After all, one can read about trigonometry in a textbook--or go create a cell phone case from a 3-D printer.

It’s the message championed by the Make and Do-It-Yourself movements, which urges everyone to be creators--not merely consumers--of technology. (Or, as author Douglas Rushkoff ominously put it, “program or be programmed.

Increasingly, industries across the board are seeking coders--so much so that there are now talent agencies specifically for coders. Here’s just a small sampling:
  • Napa Valley vineyards use increasingly sophisticated technologies to monitor natural conditions like temperature, soil moisture, dew points, and other factors that affect the quality of grapes. On a similar vein, savvy brewers have used the $25 Raspberry Pi micro-PC to create the BrewPi, an Arduino that monitors temperature and other fermentation-related factors.
  • Fashion has been going high tech for online retail catalogs and recommending outfits. Algorithms for visual searches and predictive analytics may soon forecast next season’s hottest styles at the local Gap. New designers on the scene, like Jana Hanzel and Mandy Coon, studied computer science in school. And with Google glasses at the forefront of a new wave of wearable technologies, there will be ample opportunities where the computer science and fashion industries converge.
  • Musicians have been doing “live coding,” improv performances where artists code to manipulate music on the fly. Here’s a classical-sounding etude composed entirely in Scratch from a University of Massachusetts music professor. Or, for the more experimental, there are laptop bands, such as this group from Germany, churning out some seriously psychedelic tunes.
Efforts to demystify computer science education and bring into the mainstream are picking up. Startups like Codecademy, CodeHS, and LearnStreet (just to name a few) have launched online platforms each offering to teach the world to code. Programs like ID Tech Camps, KidsCodeCamp, and CoderDojo offer classes around the clock (and world) with coaches mentoring kids through coding projects.

Schools like Beaver Country Day School in Brookline, MA, are making computer science a mandatory requirement for high school graduation. Beginning in fall 2013, the school will integrate computer science education into its geometry class, followed by arts and music. “For any school struggling with student engagement with math, this is a no-brainer,” says math department chair, Rob MacDonald. On the other coast, Aspire Public Schools, a charter network based in California, recently announced the “Code Aspire” program to introduce coding to elementary-grade students.

Making coding a curriculum or graduation requirement is only the beginning. As a language, coding crosses disciplines, industries, and cultures. As a tool, coding creates the opportunity to take an idea, scale it, and make an impact that reaches across the globe.
It really gives a new meaning to that classic first lesson in programming class: print (“Hello World”).

                                                                                  Amul@Butter

Sunday, April 14, 2013

how to start with C and C++


How to start with C & C++ (:-
For begginer in this language..

1.
     
    If you completely freshe in c and c++ then first of all you have to download C and C++ compiler.
Then you can perform the program. 
    you have to download compiler like turbo c,borland,visual c++ etc.

2.
  Now you have compiler then you have to use any reference book to study the topic of c and c++. 
I think there are so many reference books for this but some books are so much useful to us like.
  - C with E.Balagurusamy 
  - C++ with E.Balagurusamy
   
   some other are available but these also awasome for begginer and also good programmer to teach something new..

3.
  Third one is that you have to regularly practise on that topic and find out something new from internet about  that topic which you refer from the book.



I think if you do this regularly then any one can not stop you to become good programmer in objective oriented c++...


                                   (( amul patel  ))