Answer:
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
int main() {
string name[5];
int age[5];
int i,j;
for ( i = 0; i<=4; i++ ) {
cout << "Please enter student's name:";
cin >> name[i];
cout << "Please enter student's age:";
cin >> age[i];
}
for (i=0;i<=4;i++){
cout<<"Age of "<< name[i]<<" is "<<age[i]<<endl;
}
}
Output of above program is displayed in figure attached.
Answer:
D) AND gate.
Explanation:
Given that:
A certain printer requires that all of the following conditions be satisfied before it will send a HIGH to la microprocessor acknowledging that it is ready to print
These conditions are:
1. The printer's electronic circuits must be energized.
2. Paper must be loaded and ready to advance.
3. The printer must be "on line" with the microprocessor.
Now; if these conditions are met the logic gate produces a HIGH output indicating readiness to print.
The objective here is to determine the basic logic gate used in this circuit.
Now;
For NOR gate;
NOR gate gives HIGH only when all the inputs are low. but the question states it that "a HIGH is generated and applied to a 3-input logic gate". This already falsify NOR gate to be the right answer.
For NOT gate.
NOT gate operates with only one input and one output device but here; we are dealing with 3-input logic gate.
Similarly, OR gate gives output as a high if any one of the input signals is high but we need "a HIGH that is generated and applied to a 3-input logic gate".
Finally, AND gate output is HIGH only when all the input signal is HIGH and vice versa, i.e AND gate output is LOW only when all the input signal is LOW. So AND gate satisfies the given criteria that; all the three conditions must be true for the final signal to be HIGH.
Answer:
c
Explanation:
it's the only engineering career
Answer:
The match
Explanation:
You can light both the lantern and the candle if you light the match first.
I don't know of this is a homework question, but I answered it anyway :)