Posts

Showing posts from January, 2018

Fibonacci Series with Python

Image
Fibonacci Series  F ibonacci Series  are the numbers in the following   integer sequence , called the  Fibonacci series  , and characterized by the fact that every number after the first two is the sum of the two preceding ones:- {\displaystyle 1,\;1,\;2,\;3,\;5,\;8,\;13,\;21,\;34,\;55,\;89,\;144,\;\ldots }       Often, especially in modern usage, the sequence is extended by one more initial term: {\displaystyle 0,\;1,\;1,\;2,\;3,\;5,\;8,\;13,\;21,\;34,\;55,\;89,\;144,\;\ldots } By definition, the first two numbers in the Fibonacci sequence are either 1 and 1, or 0 and 1, depending on the chosen starting point of the sequence, and each subsequent number is the sum of the previous two. <PROGRAM> def fibo():     a=int(0)     b=int(1)     list=[]     list.append(a)     list.append(b)     for i in range(2,5):         k=a+b   ...
----One Time Password in Python---- Programmerix team has created their own version of OTP generation with the help of random module in python.You can check it and running the code on your system.Our team is well versed with all programming languages and technologies.We simply believe in quality and knowledge sharing among learners.Code is available downside....Hope you like it-- ----PROGRAM----  import random  import commands #------------------program Of OTP generation------------------------------------ mail=raw_input('MailId/MonileNumber :') passd=raw_input('enter the password :') list=[1111,1212,1313,4178,2345,7878,1234,9876,7865,4567,8974,1276,7687,8778,2222,0104,8483] otp=random.choice(list) print 'OTP is genrated ',otp user=int(raw_input('Enter the OTP  :')) flag = 1 while flag == 1:     if otp == user:             print 'Successfull LOGIN'             flag = 0...
Image
----MERGE SORT---- M erge Sort is a Divide and conqueror problem.  It divides an input array in two halves, calls itself for the two halves and then merges the two sorted halves.   The merge() function  is used for merging two halves.It follows the top-down approach.  Our Team "Programmerix" has created our own version of Merging code so that we can solve many students problem.We use recursive function and random function this code to help the programmers to insert the inputs via keyboard.Hope you all like it----- Gmail ----Program---- #include<iostream.h> #include<conio.h> #include<stdlib.h> void Merge(int [],int,int,int); void input(int a[],int n) { int i; randomize(); for(i=0;i<n;i++) { a[i]=rand()%100; } cout<<"array is \n"; for(i=0;i<n;i++) { cout<<" "<<a[i]; } cout<<endl; } void Ms(int a[],int low,int high) { int mid; if(low<high) { mid=(low+high)...
Our  team came with the idea to solve the problem statement of students.So we solve a problem called as Quick Sort which is the part of Data structure." Q uick Sort is basically used to sort an array of n elements.In this process we consider a key element in the initial stage and we imposed some instruction so that the new array create will place the key element to such a location so that at the left side  of key elements all the elements has less value than key element and on the right side of the key element all the elements has high value than the key element.The process continues until the array will be sort.Key element is the leftmost index of the array." In this blog we create a program to resolve the problem of students with the help of recursive functions.We use a Random function in our program so that we don't need to give input through keyboard that is compiler itself insert the inputs from buffer memory.So here you are guys.....Hope you like it.. If you lik...
Our team came with the idea to solve the problem statement of students.So we solve a problem called as Knapsack Problem(factorial) which is the part of Data structure.In this blog we create a program to resolve the problem of students with the help of recursive functions.We use a Random function in our program so that we don't need to give input through keyboard that is compiler itself insert the inputs from buffer memory.So here you are guys.....Hope you like it.. If you like the program then please like our channel by clicking the link below and if you had any problem then you can ask our team anytime. Gmail Facebook_Page     youtube <PROGRAM/CODE>   #include<iostream.h> #include<conio.h> #include<stdlib.h> void input(float w[],float v[],int n) { int i; randomize(); for(i=0;i<n;i++) { w[i]=rand()%100; v[i]=rand()%100; } cout<<endl; } void display(float w[],float v[],float r[],int n) { ...