Answer and Explanation:
clear all; close all;
N=512;
t=(1:N)/N;
fs=1000;
f=(1:N)*fs/N;
x= sin(2*pi*200*t) + sin(2*pi*400*t);
y= sin(2*pi*200*t) + sin(2*pi*900*t);
for n = 1:20
a(n) = (2/N)*sum(x.*(cos(2*pi*n*t)))
b(n) = (2/N)*sum(x.*(sin(2*pi*n*t)))
c(n) = sqrt(a(n).^2+b(n).^2)
theta(n) =-(360/(2*pi))*atan(b(n)./a(n));
end
plot(f(1:20),c(1:20),'rd');
disp([a(1:4),b(1:4),c(1:4),theta(1:4)])
Answer:
//Program was implemented using C++ Programming Language
// Comments are used for explanatory purpose
#include<iostream>
using namespace std;
unsigned int second_a(unsigned int n)
{
int r,sum=0,temp;
int first;
for(int i= 1; I<=n; i++)
{
first = n;
//Check if first digit is 3
// Remove last digit from number till only one digit is left
while(first >= 10)
{
first = first / 10;
}
if(first == 3) // if first digit is 3
{
//Check if n is palindrome
temp=n; // save the value of n in a temporary Variable
while(n>0)
{
r=n%10; //getting remainder
sum=(sum*10)+r;
n=n/10;
}
if(temp==sum)
cout<<n<<" is a palindrome";
else
cout<<n<<" is not a palindrome";
}
}
}
Explanation:
The above code segments is a functional program that checks if a number that starts with digit 3 is Palindromic or not.
The program was coded using C++ programming language.
The main method of the program is omitted.
Comments were used for explanatory purpose.
The process of using magnetic fields to produce voltage.
Answer:
C-People biking must follow all rules and laws applicable to a motorist, with some minor exceptions
Explanation:
People biking should ride on the right side of the right lane when safe, except to pass or make a left turn. When there is only one lane for traffic traveling in each direction and passing is permitted, the center of the street is marked with a broken yellow stripe
~Hope this helps!