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
Helga [31]
2 years ago
5

Write a program that passes an unspecified number of integers from command line and displays their total. Sample Run 1 command&g

t;java 1 2 3 4 5 The total is 15 Sample Run 2 command>java 1 9 1 1 1 The total is 13 Class Name: Exercise07_21
Computers and Technology
1 answer:
Lana71 [14]2 years ago
5 0

Using the computational language in JAVA it is possible to write a code that at least passes an unspecified number of integers

<h3>Writing code in JAVA</h3>

<em>class Exercise07_21</em>

<em>{</em>

<em>public static void main(String args[])</em>

<em>{</em>

<em>int sum=0;</em>

<em>for(int i=0;i<args.length;i++)</em>

<em>sum=sum+Integer.parseInt(args[i]);//converting string to integer and then adding it with sum variable and storing back in sum</em>

<em>System.out.println("The total is "+sum);//printing the sum</em>

<em>}</em>

<em>}</em>

See more about JAVA code at brainly.com/question/12975450

#SPJ1

You might be interested in
Once a manual is written, it may change over time as procedures change. What's a recommended format for a manual to incorporate
zhenek [66]

Answer:

Print the manual in a loose leaf binder so even small changes can be replaced

Explanation:

Procedure  manual is the document that contains the business policies and strategies. These strategies can be changed time to time in the interest of company.

As these policies or procedures changes, it is necessary to communicate with all employees. To communicate this updated information to all employees it is necessary to print all that pages, where the changes have been made to replace them in the current manual. If we print whole manual it may increase the cost of printing. To reduce printing cost and wastage of pages only print those particular pages that have been changed. This will help to communicate to the existing employees as well  as to newly hired employees.

3 0
3 years ago
To create nested lists within each of these topical areas that would contain links to specific pages on the AllStyles website. I
Gwar [14]

Answer:

The answer is add a new list within a list.

Explanation:

Because a nested list is a list within a list. It is the same effect of a bulleted outline in a word processing document you probably used a variety of indentations and bullet point types to denote items that were subpoints of another item in the outline.

7 0
3 years ago
Susan is troubleshooting a problem with a computer's network cabling. At which layer of the Open Systems Interconnection (OSI) R
Alisiya [41]

Answer:

Physical layer

Explanation:

The physical layer is responsible for the physical cable or wireless connection.

6 0
3 years ago
Assume that there are about 60 students in your class. If every student is to be assigned a unique bit pattern, a) what is the m
Arada [10]

Answer:

a) Therefore, the minimum number of bits required is 6.

b) Therefore, we can admit 4 more students to the class without requiring additional bit for each student's unique bit pattern

Explanation:

a) The number of unique bit patterns using <em>n</em> bits is calculated using 2^{n}.

In this case, there are 60 students, so, we need at least 60 unique bit pattern.

2^{n}  = 60

Where <em>n</em> is the number of bit required; we are to find <em>n</em>

We take the logarithm of both side:

log_{2} 2^{n}  = log_{2} 60\\n = log_{2} 60\\n = 6 (Approximately)

Therefore, the minimum number of bits required is 6

b) How many more students can be admitted to the class without requiring additional bits for each student's unique bit pattern?

With 6 bits, we can represent up to 2^{6} unique bit pattern which is 64 unique bit patterns.

To get the number of additional bit:

64 - 60 = 4

Therefore, we can admit 4 more students to the class without requiring additional bit for each student's unique bit pattern

7 0
3 years ago
Does anyone know were the (021) key is on Windows 10?
pashok25 [27]

Answer: maybe do this 3425+ENTER

Explanation:

6 0
3 years ago
Other questions:
  • In the two-level directory, if a user refers to a particular file then__________________ Select one: a. only his/her own UFD (us
    7·1 answer
  • Computer science;
    14·1 answer
  • Name a piece of software you often use where it is easy to produce an error. Explain ways you could improve the interface to bet
    5·1 answer
  • What is the definition of software? Group of answer choices an instruction that causes a single specific action to be performed
    11·1 answer
  • A user contacted the help desk to report that the laser printer in his department is wrinkling the paper when printed. The user
    5·1 answer
  • The loop function is similar to range(), but handles the parameters somewhat differently: it takes in 3 parameters: the starting
    14·1 answer
  • What types of forecast worksheets are available in Excel? Check all that apply.
    6·2 answers
  • Please explain what Level 5 Automation is and give 2 examples of the technology.
    10·1 answer
  • Which of the following statements about the relationship between hardware and software is true? a) Hardware can be present in in
    9·1 answer
  • First person to make me laugh will get brainliest.​
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!