Answer:
class TriangleNumbers
{
public static void main (String[] args)
{
for (int number = 1; number <= 10; ++number) {
int sum = 1;
System.out.print("1");
for (int summed = 2; summed <= number; ++summed) {
sum += summed;
System.out.print(" + " + Integer.toString(summed));
}
System.out.print(" = " + Integer.toString(sum) + '\n');
}
}
}
Explanation:
We need to run the code for each of the 10 lines. Each time we sum numbers from 1 to n. We start with 1, then add numbers from 2 to n (and print the operation). At the end, we always print the equals sign, the sum and a newline character.
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.
The rainfall run off model HEC-HMS is combined with river routing model. They are used for simulating the rainfall process.
Explanation:
The HEC - HMS rainfall model is used for simulating the rainfall runoff process. In this study the soil conservation service and curve number method is used to calculate the sub basin loss in basin module.
It provides various options for providing the rainfall distributions in the basin. It has the control specification module used to control the time interval for the simulations.
The one dimensional continuity equation is
бA / бT + бQ / бx= 0
Answer:
B - Poor
Explanation:
As you get higher up, There is less oxygen which causes the engine to create less power.