Home

- Home

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...
Go

What 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...
Go

What 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...
Go
image 1 - Home

What 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...
Go

Vowel 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”...
Go

Virtual 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 =  ...
Go
- Home

Time 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.   ...
Go
- Home

Time 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...
Go
- Home

Time 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:...
Go
# - Home

testprompt

Image Background Changer Image Background Changer Select Background Color: BlueWhite Change Background Download Image reader.onload = function (e) { var previewImage = document.getElementById('preview-image'); previewImage.src = e.target.result; }; reader.readAsDataURL(file); }); // Handle background change document.getElementById('process-btn').addEventListener('click', function () { var previewImage = document.getElementById('preview-image'); var colorSelect = document.getElementById('color-select'); var selectedColor = colorSelect.value; var canvas = document.createElement('canvas'); var context...
Go

test-00

AI Chatbot Send // Function to add a bot message to the chat area function addBotMessage(message) { const chatArea = document.getElementById('chat-area'); const botMessage = document.createElement('div'); botMessage.classList.add('bot-message'); botMessage.textContent = message; chatArea.appendChild(botMessage); } // Function to send user message and get bot response async function sendMessage() { const userInput = document.getElementById('user-input').value; addUserMessage(userInput); document.getElementById('user-input').value = ''; const response...
Go

test 53

AI Chatbot Send // Function to add a bot message to the chat area function addBotMessage(message) { const chatArea = document.getElementById('chat-area'); const botMessage = document.createElement('div'); botMessage.classList.add('bot-message'); botMessage.textContent = message; chatArea.appendChild(botMessage); } // Function to send user message and get bot response async function sendMessage() { const userInput = document.getElementById('user-input').value; addUserMessage(userInput); document.getElementById('user-input').value = ''; const response...
Go

test 52

Document Text Extraction Upload Document...
Go

Template 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...
Go

Template 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; }...
Go

Template 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; }...
Go

Template 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; }...
Go

Teacher’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;}...
Go

Student 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){...
Go

Student 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; }...
Go

Structure 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...
Go

Structure 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; }...
Go

Structure 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; }...
Go

Structure 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; }...
Go

Structure 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; }...
Go

Structure + 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...
Go

Square 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; }...
Go

Snake 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...
Go

Single 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:...
Go

Signal 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...
Go
image edited - Home

Signal 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...
Go

Signal 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     ...
Go
image 2 1024x576 - Home

Signal 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...
Go

Signal 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...
Go

Signal 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...
Go

Selection 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...
Go

Root 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...
Go

Return 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; }...
Go

Return 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; }...
Go

Radius 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; }...
Go
- Home

Python 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...
Go
- Home

Python 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:...
Go
- Home

Python 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...
Go
image 20 - Home

Python 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...
Go
- Home

Python 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...
Go
- Home

Python 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...
Go
- Home

Python 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):   ...
Go