1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Y_Kistochka [10]
3 years ago
5

I gave 15 min to finish this java program

Engineering
1 answer:
lisov135 [29]3 years ago
4 0

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.

You might be interested in
Among Us Map-Skeld Imposter 3 code- DBZPTQ
Yuki888 [10]

Answer:

0:  <em>NOICE  </em>:0

Explanation:

7 0
3 years ago
Read 2 more answers
_____ are used to control the flow of electricity in a circuit.
Travka [436]

Answer:

Switches control the flow of electricity in a circuit.

8 0
3 years ago
Read 2 more answers
What is the lehr and what purpose does it serve?
levacccp [35]

Explanation:

Step1

Lehr is the long open or closed insulated space for glass manufacturing. Lehr must be large enough to keep the cooling of glass uniform. The function of Lehr is the same as an annealing process in metallurgy.  

Step2

Lehr decrease the cooling and temperature variation in glass production. Uneven temperature creates the internal stress in the glass. Lehr reduces the internal stress in the glass product.  So, the main purpose of the Lehr is to reduce the internal stress and keep the cooling uniform.

5 0
3 years ago
Define the following terms: data, database, DBMS, database system, database catalog, program-data independence, user view, DBA,
nalin [4]

Answer:

data - Any form of value in a column of a table in a relational database.

DBMS - Short for Database management system, which is a software that can be used to create, manipulate and view databases, e.g. MS SQL Server.

database system - Same as DBMS.

database catalog - Place where the metadata of a Database including its tables, users etc. exists, e.g. date created, size, number of columns etc. Also known as Data Dictionary.

program-data independence - Program-data independence refers to the design of keeping different levels of database (external, logical and physical) separate and loosely coupled from each other, for easier maintenance or modification work.

DBA - Short for Database Administrator, person responsible for maintaining the database. Its main responsibility is to keep the data clean and safe i.e. data doesn't contain wrong or invalid data, and is safe from viruses and is backed up.

end user - Anyone who is not directly interacting with a database, but through some software, like website or mobile application.

persistent object - An object of a class in a program, that interacts with the underlying database and is responsible for manipulating the database, the program is connected to.

transaction-processing system - A transaction process system is part of a software, responsible for making sure critical business transactions, like crediting or debiting money, either goes through cleanly or doesn't at all.

6 0
4 years ago
What happens when the arms of the milky move away from the center of the galaxy
Alina [70]
Well this question is though because we have never seen such a thing ! and to be quite frank when that happens , nothing good comes from it. Black Holes
6 0
3 years ago
Other questions:
  • Here u go vagdhf dis day did. Du video ioi Hi I gotta go to do something fun to do something that would you want to me see you l
    15·1 answer
  • Problem 7.16 (GO Tutorial) A cylindrical bar of steel 10.4 mm (0.4094 in.) in diameter is to be deformed elastically by applicat
    15·1 answer
  • The Release Train Engineer is a servant leader who displays which two actions or behaviors?
    6·1 answer
  • 3 If, for a particular junction, the acceptor concentration is 1017/cm3 and the donor concentration is 1016/cm3 , find the junct
    6·1 answer
  • HELP PLS<br> Is a book a solid, frame, shell or combination and WHY
    6·2 answers
  • Words and numbers can be<br> printed using many different<br> or type styles.
    14·1 answer
  • Select the correct answer.
    12·1 answer
  • If 360 Joules of work is needed to move a crate a distance of 4 meters, how much force was applied of the crate?​
    15·1 answer
  • Some extremely hazardous materials used in welding operations include
    15·1 answer
  • More and more companies are discarding the traditional superior-subordinate performance feedback process and replacing it with:
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!