Answer:
//This Program is written in C++
// Comments are used for explanatory purpose
#include <iostream>
using namespace std;
enum mailbox{open, close};
int box[149];
void closeAllBoxes();
void OpenClose();
void printAll();
int main()
{
closeAllBoxes();
OpenClose();
printAll();
return 0;
}
void closeAllBoxes()
{
for (int i = 0; i < 150; i++) //Iterate through from 0 to 149 which literarily means 1 to 150
{
box[i] = close; //Close all boxes
}
}
void OpenClose()
{
for(int i = 2; i < 150; i++) {
for(int j = i; j < 150; j += i) {
if (box[j] == close) //Open box if box is closed
box[j] = open;
else
box[j] = close; // Close box if box is opened
}
}
// At the end of this test, all boxes would be closed
}
void printAll()
{
for (int x = 0; x < 150; x++) //use this to test
{
if (box[x] = 1)
{
cout << "Mailbox #" << x+1 << " is closed" << endl;
// Print all close boxes
}
}
}
Explanation:
I’m pretty sure the answer is B
Realize the function f(a, b, c, d, e) = Σ m(6, 7, 9, 11, 12, 13, 16, 17, 18, 20, 21, 23, 25, 28)using a 16-to-1 MUX with control
NNADVOKAT [17]
Answer:
See explaination
Explanation:
please see attachment for the detailed diagram used in solving the given problem.
It is attached as an attachment.
Answer:
Explanation:
The frequency components in the message signal are
f1 = 100Hz, f2 = 200Hz and f3 = 400Hz
When amplitude modulated with a carrier signal of frequency fc = 100kHz
Generates the following frequency components
Lower side band

Carrier frequency 100kHz
Upper side band

After passing through the SSB filter that filters the lower side band, the transmitted frequency component will be

At the receive these are mixed (superheterodyned) with local ocillator frequency whichh is 100.02KHz, the output frequencies will be

After passing through the SSB filter that filters the higher side band, the transmitted frequency component will be

At the receive these are mixed (superheterodyned) with local oscillator frequency which is 100.02KHz, and then fed to the detector whose output frequencies will be
