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
elena-s [515]
2 years ago
5

Write a program that passes an unspecified number of integers from command line and displays their total.

Computers and Technology
1 answer:
Svetradugi [14.3K]2 years ago
5 0

Answer:

Explanation:

I will go straight to the code, and hope it didn't confuse you.

Here is it

public static void main(String[] args)

int [] x = new int [args.length]

for (int y = 0; y< args.length;yi++)

int[y] = (int) args [y]

You might be interested in
A structure that organizes data in a list that is commonly 1-dimensional or 2-
kobusy [5.1K]

Answer:

An array.

Explanation:

An array can be defined as a structure that organizes data in a list that is commonly 1-dimensional or 2-dimensional.

Simply stated, an array refers to a set of memory locations (data structure) that comprises of a group of elements with each memory location sharing the same name. Therefore, the elements contained in array are all of the same data type e.g strings or integers.

Basically, in computer programming, arrays are typically used by software developers to organize data, in order to search or sort them.

Binary search is an efficient algorithm used to find an item from a sorted list of items by using the run-time complexity of Ο(log n), where n is total number of elements. Binary search applies the principles of divide and conquer.

In order to do a binary search on an array, the array must first be sorted in an ascending order.

Hence, array elements are mainly stored in contiguous memory locations on computer.

6 0
2 years ago
Which of the following is an example of a runtime error?
Rina8888 [55]

Answer:

missing quotation marks around a string literal

6 0
2 years ago
Lactic acid (ch3ch(oh)cooh) has one acidic hydrogen. a 0.10 m solution of lactic acid has a ph of 2.44. calculate ka.
sammy [17]

The answer is : Ka=0.000137

HA -> H+ + A-

0.10 x x

0.10-x +x +x

[H+]= 10^-2.44 = 0.00363

x= 0.00363

(0.00363)(0.00363)/(0.10-0.00363) = 0.000137

Ka=0.000137

5 0
3 years ago
Imagine you are the human resource director for a small video game company that employs around 20 coders, managers, artists, etc
wolverine [178]

Answer: maybe not put cheats no secret or easter eggs or hard challenges im not sure

Explanation:

6 0
2 years ago
When you use a mouse to select a row or column in a table, word displays a(n) ____?
Harrizon [31]
Insert Control, I believe.
5 0
3 years ago
Other questions:
  • Assume that the following code exists inside a method of SomeClass, and that this code compiles without errors:
    13·1 answer
  • Which statement about synchronous communication is true?
    15·1 answer
  • What is blogging
    15·2 answers
  • How do the companies gather data to determine common passwords?
    13·1 answer
  • What finger should be on the Y key?
    12·2 answers
  • Difference between if then and if then else statement ​
    14·1 answer
  • What is a field on a table
    13·1 answer
  • What is the difference between algorithm and flowchart​
    7·1 answer
  • Hey everyone please let my friends answer please?????? .
    12·2 answers
  • Please Answer Quickly.<br> Match the item on the left with the reason that it is false on the right.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!