Answer:
Without Recursives
// Program is written using C++
// Comments are used for explanatory purpose
int main()
{
// Declare integer number, n
int n;
cout<<"Enter number of starts to print"
cin>>n;
// Iterate through to print * pattern
for(i=n; i>0;i--)
{
for(j=n; i>j-1;j--)
{
cout<<"*";
}
cout<"\n";
}
for(i=0; i< n; i++)
{
for(j=0;j<=i;j++)
{
cout<<"*";;
}
cout<"\n";
}
return 0;
}
Using Recursive
#include <iostream>
using namespace std;
void printStars(int lines);
int main()
{
// prompt the user to enter a number
int lines;
cin>> lines;
printStars(int lines);
return 0;
}
void printStars(int lines)
{
if (lines < 1)
return;
// to print the stars of a particular row
if (i <= lines)
{
cout << "* ";
// recursively print rest of the stars
// of the row
printPatternRecur(lines, i + 1);
}
else
{
// change line
cout << endl;
// print stars
printPatternRecur(lines-1, 1);
}
}
Answer:
(a) 1/L∫Vdt; integral t [0,1]
(b) 1/L∫Vdt; integral t [ 1, infinity]
Explanation:
An Inductor current I, flowing through an inductor depends on the voltage, V, across the inductor and the inductance, L, of the inductor. The switch 1, 2 timing varies the voltage V with time t
The expression for inductor current is given as:
I= 1/L∫Vdt,
where I is equal to the current flowing through the inductor, L is equal to the inductance of the inductor, and V is equal to the voltage across the inductor.
The formula can also be written as:
I= I0 + 1/L∫Vdt, where I is inductor current at time t, and io is inductor current at t = 0. Time can be varied by controlling the switch
Answer:
QPSK: 7.5 MHz
64-QAM:2.5 MHz
64-Walsh-Hadamard: 160 MHz
Explanation:
See attached picture.
Answer:
Pre-Flush:
It is also known as In-line Equalization. In this stage of flow equalization, all the flow passes through the equalization basin. It helps in reduction of fluctuation in pollutants concentration and flow rate and helps to control short term surges with the use of basin.
Post-Flush:
Another name for this stage is Off-line Equalization. In this stage, only overflow above a predetermined standard is diverted into the basin. It helps in reducing the fluctuations in loading by a considerable amount and helps to reduce the pumping requirement. It is basically used to capture "first flush" from combined collection systems.
Answer:
461.65 KJ/Kg
Explanation:
In this question, we are asked to calculate the values of heat transferred in the process.
Please check attachment for complete solution and step by step explanation