Z-transform and Inverse Z- transform Examples
Z-transform & Inverse Z-transform Examples Example :01 x(z) = _______18z^3_______ 18z^3 + 3z^2 -4z – 1 CODE: b = ; a = ; = residuez(b,a); u = ones(1,10); n = 0:9; f...
GoWhat to Do Before Rooting your Android Smartphone?
You might be thinking of Rooting your precious Android Smartphone just to make sure it works better than ever before. You would love to make all the customizations on your device that you just saw on someone’s phone! Don’t be confused with Rooting. Learn to Love your phone and root it the best way possible...
GoWhat is Rooting ?
Rooting means gaining root access to your device. When you take your phone out of the box, while there are plenty of settings you can tweak, you can only alter what the manufacturer allows you to. By gaining your root access you can modify the device’s software on the very deepest level. It takes a...
GoWhat is Digital Marketing, and what are its Benefits?
(1) Digital marketing is the process through which an organization can promote its goods, services and grow the brand. A few ways to become successful in digital marketing is explained below: Web Design – A great experience for the users who visit the website of the organization plays a significant role in digital marketing. Owning...
GoVowel Or Not Program – C Language
#include <stdio.h> #include <stdlib.h> int main() { char ch; printf(“Enter a charactern”); scanf(“%c”, &ch); if (ch == ‘a’ || ch == ‘A’ || ch == ‘e’ || ch == ‘E’ || ch == ‘i’ || ch == ‘I’ || ch ==’o’ || ch==’O’ || ch == ‘u’ || ch == ‘U’) printf(“%c is a vowel.n”...
GoVirtual Calculator Casio FX- 100MS
Current GPA: Write your current academic GPA in numbers. Example: 3.45 Current Hours: How many hours have you finished EXCLUDING this semester? Example: 44 Course Name (Optional) Credit Hours Expected Grade + ADD ANOTHER COURSE Calculate GPA Reset Fields RESULTS: Total credit of this semester = Semester GPA = ...
GoTime Shifting Property in MATLAB Complete Prove (Code + Output)
Time shifting Prove: DFT{x(n-l)} = X(K)e^(-j(2*pi/N)kl You can prove Time Shifting Property in MATLAB of any sinusoidal signal. To do Linearity with any signal in Matlab, simply open and create a new Script (.m file) in Matlab. Step 1: Open MATLAB << Then on the top left corner click on the File option << Click New << Then click Script. ...
GoTime Shifting in MATLAB (Code + Output)
You can do Time Shifting in Matlab with Discrete as well as Continuous signals. To time shift any discrete or continuous signal in Matlab, simply open and create a new Script (.m file) in Matlab. Step 1: Open MATLAB << Then on the top left corner click on the File option << Click New << Then click Script. Step 2: Now write...
GoTime Scaling in MATLAB (Code + Output)
You can do Time Scaling in Matlab of Discrete as well as Continuous signals. To time scale any discrete or continuous signal in Matlab, simply open and create a new Script (.m file) in Matlab. Step 1: Open MATLAB << Then on the top left corner click on the File option << Click New << Then click Script. Step 2:...
GoTemplate Example 4 – C++ Language
#include <iostream> using namespace std; template<class T, class M, class Q> class test { public: sum(T a, M b) { cout<<a+b<<endl; } summ(M c, Q d) { cout<<c+d<<endl; } void func() { cout<<“Hello”<<endl; } }; int main() { try { throw ‘S’; } catch(char c) { cout<<c<<endl; } test<int, float, double> obj; obj.sum(5,2.2); obj.summ(5,3); return...
GoTemplate Example 3 – C++ Language
#include <iostream> using namespace std; template<class T, class M> class test { public: T name; M roll; void get() { cout<<“Name”<<endl; cin>>name; cout<<“roll”<<endl; cin>>roll; } void display() { cout<<“Name is :”<<name<<endl; cout<<“Roll is :”<<roll<<endl; } }; int main() { test<string, int> obj; obj.get(); obj.display(); return 0; }...
GoTemplate Example 2 – C++ Language
#include <iostream> using namespace std; template<class X> class test { private: X a,b; public: test(X m, X n) { a=m; b=n; } X display() { X temp; temp= (a>b)?a:b; cout<<“The result is: “<<temp<<endl; } }; int main() { test <float> obj(5,10.6); obj.display(); return 0; }...
GoTemplate Example 1 – C++ Language
#include <iostream> using namespace std; template<class X> X compare(X a, X b) { if(a>b) return a; else return b; } int main() { cout<<compare(2,3)<<endl; cout<<compare(5.5,6.67)<<endl; return 0; }...
GoTeacher’s Data+Salary Calculator+(Default+Overloaded) Constructor+ Set&Get Statement – C++ Language
#include <iostream> using namespace std; class teacher{ private: string name; string qualification; int phone; float daily_salary; int absents; int presents; public: void setdata(){ cout<<“Enter Name,Qualification,Phone Number,Daily salary,Presents,Absents: “<<endl; cin>>name>>qualification>>phone>>daily_salary>>presents>>absents;} void setname(){ cout<<“Enter name: “<<endl; cin>>name;} void setqualification(){ cout<<“Enter qualification: “<<endl; cin>>qualification;} void setphone(){ cout<<“Enter phone number: “<<endl; cin>>phone;} void setdaily_salary(){ cout<<“Enter daily salary: “<<endl; cin>>daily_salary;}...
GoStudent Info using Class – Algorithms & Data Structures in C++
#include<iostream> using namespace std; class student{ public: string c; float percentage; int range; void setstudentinfo(){ cout<<“enter number of student whose record you want to save n”; cin>>range; for(int k=0;k<range;k++){ cout<<“n enter name and regno”<<k+1; cin>>c;} for(int k=0;k<range;k++){ cout<<“n enter percentage of student”<<k+1; cin>>percentage; } } void getstudentinfo(){ for(int k=0;k<range;k++){ cout<<“nstudent isn”<<k+1<<“regno and name isn”<<c; if(percentage>=70){...
GoStudent Data – Algorithms & Data Structures in C++
#include<iostream> using namespace std; int main(){ const int noofstudent=1; int marks; const int noofsubjects=6; int stmarks; int rollno=53; rollno=rollno+1; cout<<rollno; for(int student=0;student<noofsubjects;student++){ for(int subjects=0;subjects<noofsubjects;subjects++){ cout<<“enter marks for subjects”<<subjects+1<<endl; cin>>stmarks; } } for(int student=0;student<noofsubjects;student++){ for(int subjects=0;subjects<noofsubjects;subjects++){ cout<<“subject marks”<<subjects+1<<“”<<stmarks<<endl;} cout<<endl;} return 0; }...
GoStructure With Array Student Data – C Language
#include <stdio.h> #include <stdlib.h> struct student { char name,fathersname,gender; int age,roll,marks; }; int main() { struct student a; int i,j; printf(“how many student you want too get data”); scanf(“%d”,&j); for(i=0; i<10; i++){ printf(“Enter your namen”); scanf(“%s”,&a.name); printf(“Enter your fathers namen”); scanf(“%s”,&a.fathersname); printf(“Enter your gendern”); scanf(“%s”,&a.gender); printf(“Enter your agen”); scanf(“%d”,&a.age); printf(“Enter your rolln”); scanf(“%d”,&a.roll); printf(“Enter your...
GoStructure Student Data – C Language
#include <stdio.h> #include <stdlib.h> struct student { int age,roll,marks; }; int main() { struct student r; printf(“Enter your agen”); scanf(“%d”,&r.age); printf(“Enter your rolln”); scanf(“%d”,&r.roll); printf(“Enter your marksn”); scanf(“%d”,&r.marks); printf(“%d,%d,%d”,r.age,r.marks,r.roll); return 0; }...
GoStructure Example 2 – C++ Language
#include <iostream> using namespace std; struct student { string name; }; int main() { struct student a; cout<<“Enter the name of student”<<endl; cin>>a.name; cout<<“student names is : ” <<a.name<<endl; return 0; }...
GoStructure Example 1 – C++ Language
#include <iostream> using namespace std; struct student { char name; }; int main() { struct student a; cout<<“Enter the name of students”<<endl; for(int i=1;i<=5;i++) { cin>>a.name; } cout<<“student names are”<<endl; for(int j=1;j<=5;j++) { cout<<a.name<<endl; } return 0; }...
GoStructure Display Day/Month/Year – C Language
#include <stdio.h> #include <stdlib.h> struct s { int d,m,y; }; int main() { struct s date,date1; date.d=14; date.m=12; date.y=2016; printf(“%d,%d,%d”,date.d,date.m,date.y); date1=date; printf(“%d”,date1); return 0; }...
GoStructure + Array Student Data Program – C Language
#include <stdio.h> #include <stdlib.h> struct student { char name; char father; char city; int roll; } a; int data(); int info(char a,char b,char c,int d); int main() { // Calling Function to input data data(); } int data() { // Taking Input From User printf(“n Enetr Student Name = “); scanf(“%s”,&a.name); printf(“n Enetr Father Name...
GoSquare Root Program – C Language
#include <stdio.h> #include <stdlib.h> int main() { int a,b; printf(“Enter the numbern”); scanf(“%d”,&a); b=sqrt(a); printf(“The square root of the number is %d”,b); return 0; }...
GoSnake Game – C Language
#include <stdio.h> #include <time.h> #include <stdlib.h> #include <conio.h> #include<time.h> #include<ctype.h> #include <time.h> #include <windows.h> #include <process.h> #define UP 72 #define DOWN 80 #define LEFT 75 #define RIGHT 77 int length; int bend_no; int len; char key; void record(); void load(); int life; void Delay(long double); void Move(); void Food(); int Score(); void Print(); void gotoxy(int...
GoSingle Linked List Complete Program – Algorithms & Data Structures in C++
#include<iostream> #include<fstream> #include <string> using namespace std; class Order { private: string customer; string country ; string productList; int numProducts ; public: void createOrder(Customer); void add(product); void search(string); void delete(string); void display(); }; class Customer { private: string name; string address; public: void createCust(string, string); void customer(string, string); void getName(); }; class Product { private:...
GoSignal Subtraction function in MATLAB
You can make a signal subtraction function in Matlab and can use it as a calling function in any operations, codes and files in Matlab. To do this simply open and create a new Script (.m file) in Matlab. Open MATLAB << Then on the top left corner click on the File option << Click New << Then click Script Now write...
GoSignal Shift function in MATLAB
You can make a signal shift function in Matlab and can use it as a calling function in any operations, codes and files in Matlab. To do this simply open and create a new Script (.m file) in Matlab. Open MATLAB << Then on the top left corner click on the File option << Click...
GoSignal Multiplication function in MATLAB
You can make a signal multiplication function in Matlab and can use it as a calling function in any operations, codes and files in Matlab. To do this simply open and create a new Script (.m file) in Matlab. Open MATLAB << Then on the top left corner click on the File option << Click New << Then click Script ...
GoSignal Fold function in MATLAB
You can make a signal fold function in Matlab and can use it as a calling function in any operations, codes and files in Matlab. To do this simply open and create a new Script (.m file) in Matlab. Open MATLAB << Then on the top left corner click on the File option << Click...
GoSignal Addition function in MATLAB
You can make a signal addition function in Matlab and can use it as a calling function in any operations, codes and files in Matlab. To do this simply open and create a new Script (.m file) in Matlab. Open MATLAB << Then on the top left corner click on the File option << Click...
GoSignal Addition function (Alternate Method) in MATLAB
You can make a signal addition function in Matlab and can use it as a calling function in any operations, codes and files in Matlab. So, basically this is the 2nd method of how to make a signal addition function in Matlab. I have already explained the first method here Signal addition 1st Method. So...
GoSelection Sorting using Recursion – Algorithms & Data Structures in C++
-// Recursive C++ program to sort an array // using selection sort #include <iostream> using namespace std; // Return minimum index int minIndex(int a, int i, int j) { if (i == j) return i; // Find minimum of remaining elements int k = minIndex(a, i + 1, j); // Return minimum...
GoRoot your Android Device Step by Step Guide
How to Root any of your Android Device Smart Phones, Tablets etc You always worried and wanted to know that how to root your android device. Well let me tell you that you are surprisingly at the exact and right spot. Just thoroughly read the complete article and then you will let to know to...
GoReturn The Index of Highest Value – C++ Language
#include<iostream> using namespace std; //This is the program to return the index of highest value// int main(int arr, int size) { int max=0; int ar={2,1200,1,125,6}; for(int i=0;i<=5;i++) { if(ar>ar) max=i; } cout<<“max valuen”<<max; return 0; }...
GoReturn The Highest Value – C++ Language
#include<iostream> using namespace std; //This is the program to return the highest value// int main() { int max; int arr={2,5,10,125,6}; max=0; for(int i=0;i<=5;i++) { if(arr>max) max=arr; } cout<<“max valuen”<<max; return 0; }...
GoRadius Program – C Language
#include <stdio.h> #include <stdlib.h> int main() { int r; printf(“The the value =”); scanf(“%d”,&r); r=r/2; printf(“The value of radius is %d”,r); return 0; }...
GoPython Learning Week 9 (Solution)
KNN Classifier In Artificial Learning Tasks Implement KNN algorithm yourself in python for Iris Dataset without using built-in KNN classifier library. Load dataset Split dataset into test and train sets Perform KNN algorithm to make predictions for k=5 Compute accuracy and confusion matrix CODE: What we studied in Week 9:In this week we studied the...
GoPython Learning Week 9
KNN Classifier In Artificial Learning Import data set: Creating Dependent and independent variables: Initialize the algorithm: Training and testing: Fitdoes training on Training Data (X_train, Y_Train) Predictdoes testing on Test data (X_test) and predicts outputs Combining with predicted values with y values:...
GoPython Learning Week 8 (Solution)
Task 1 Write a program to implement KNN classifier and classify given vector. (for k = 3) Age Loan Class (Defaulter) 25 40000 N 35 60000 N 45 80000 N 20 20000 N 35 120000 N 52 18000 N 23 95000 Y 40 62000 Y 60 100000 Y 48 220000 Y 33 150000 Y 48...
GoPython Learning Week 8
Implementation of K-nearest Neighbor Classification Model Background Installing Panda, numpy, scipy, sklearn libraries Go to terminal in Pycharm Type pip install pandas Or you can install all by going to Settings -> Project Interpreter -> +-> sklearn -> Install Package KNN- Classifier In pattern recognition and machine learning, k-nearest neighbors (KNN) is a simple algorithm that stores...
GoPython Learning Week 7 (Solution)
Task 1 Implement Greedy Best First Search Algorithm for the given example, if starting node is Arad and goal node is Bucharest. CODE: GRAPH = {‘Arad’:,,], ‘Zerind’:,], ‘Oradea’:], ‘Sibiu’:,,], ‘Fagaras’:,], ‘Rimniciu Vilcea’:,,], ‘Timisoara’:,], ‘Lugoj’:], ‘Mehadia’:,], ‘Dobreta’:,], ‘Pitesti’:,], ‘Craiova’:,,], ‘Bucharest’:,,,], ‘Giurgiu’: ], ‘Urziceni’:,,], ‘Vaslui’:,], ‘Lasi’:,], ‘Neamt’:], ‘Hirsova’:,], ‘Eforie’:] } def gbfs(GRAPH, start, end): explored = queue = while queue: print (queue) node = queue.pop(0) if node not...
GoPython Learning Week 7
Implementation of Greedy Best First Search & A* Search Algorithm Background Heuristics can be said to be estimates of how far the goal state is. Heuristics basically predict how far the goal state maybe or how much it will cost to get to the goal state from a particular node. Greedy Breath First Search Example Pseudocode...
GoPython Learning Week 6 (Solution)
Task 1 Implement Greedy Best First Search Algorithm for the given example, if starting node is Arad and goal node is Bucharest. CODE: GRAPH = {‘Arad’:,,], ‘Zerind’:,], ‘Oradea’:], ‘Sibiu’:,,], ‘Fagaras’:,], ‘Rimniciu Vilcea’:,,], ‘Timisoara’:,], ‘Lugoj’:], ‘Mehadia’:,], ‘Dobreta’:,], ‘Pitesti’:,], ‘Craiova’:,,], ‘Bucharest’:,,,], ‘Giurgiu’: ], ‘Urziceni’:,,], ‘Vaslui’:,], ‘Lasi’:,], ‘Neamt’:], ‘Hirsova’:,], ‘Eforie’:]} def gbfs(GRAPH, start, end): ...
GoPython Learning Week 5 (Solution)
Task 1 Write a program in python to implement given Graph, BFS and DFS. Output must be as given below CODE: graph = { ‘E’ : , ‘A’ : , ‘B’ : , ‘D’ : , ‘C’: } #EDGE-LIST def edges(graph): edge_list = for node in graph: for neighbour in graph: edge_list.append((node, neighbour)) return edge_list #VERTEX-LIST class Vertices_list: def __init__(self,graph_dict=None): if graph_dict is None: graph_dict = self.graph_dict = graph_dict def get_Vertices(self): return list(self.graph_dict.keys()) G = Vertices_list(graph) #BFS...
GoPython Learning Week 4 (Solution)
Tasks Implement the given Graph in Python. Write a method to output degree of each node within the graph. Write a method to find any path from node 6 to node 1 in given Graph. Modify part 2 to show all possible paths between node 6 to node 1 in Graph. CODE: for a in...
Go