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:
1. True
2. True
3. False
Explanation:
The office location is where the soil layer is not uniform. The thickness of the soil varies which could lead to doors being jammed. The engineer needs to estimate the differential in clay soil.
The inclined surface can hold less weight than a vertical surface. The capacity to hold the weight is due to the gravitational force which is exerted to the load.
Answer:
a cable -stayed bridge has, one or more towers,from which cable support the bridge deck.
All of the above. Answer.