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
san4es73 [151]
3 years ago
5

Suppose sum and num are int variables, and the input is

Computers and Technology
1 answer:
katrin2010 [14]3 years ago
6 0

Answer:

110

Explanation:

The <em>Scanner</em> is a Java class that is used to take an input from user.

The <em>nextInt() </em>method will get an integer from user.

The while loop in the question is a sentinel loop where the loop will keep running until user input the sentinel value which is -1 to stop the loop.  This is important to note that, before the start of next iteration, the program will prompt the input for an integer from user.

While the loop is ongoing, the variable <em>sum </em>will be repeatedly added with input integer from user. If the input is 18, 25, 61,  6, the sum will be 18 + 25 + 61 + 6 = 110

You might be interested in
________ symbol is used in the "Advanced" section of the time range picker to round down to nearest unit of specified time.
liberstina [14]

Answer:

@(at sign) is the correct answer to the following statement.

Explanation:

Because the following symbol is the "at sign" symbol that is used for the Advanced section in the time range picker that lets the user search for the specified time for the round down the closest entity of a particular period. So, that's why the following answer is correct for the following statement.

8 0
4 years ago
PLEASE HELP ASAP
Flura [38]

every photo, vid, tweet... (c)

3 0
3 years ago
What is the magnitude of the largest positive value you can place in a bool? a char? an int? a float? a double??
Elena L [17]
The <span>magnitude of the largest positive value you can place in a bool, a char, an int, a float, a double are as follows:

</span><span>Int: 4 bytes Float: 4 double: 8 char: 1 boolean: 1
</span>
I hope my answer has come to your help. God bless and have a nice day ahead!
8 0
4 years ago
Look at the following program and answer the question that follows it. They are multiple choice i need the correct one and expla
Tamiku [17]
E!


Have an amazing day!
4 0
3 years ago
In Python, a function is _____.
ad-work [718]

Answer:

a group of instructions that can be used to organize a program or perform a repeated task

Explanation:

A function is a group of commands that can be called upon with extra parameters if needed.

Example:

def foo():                          #defining this function and naming it foo

    return True                 #what is performed when foo is called on

if foo() == True:               #foo() is calling on a function named foo

   print('yes')

8 0
3 years ago
Other questions:
  • RADIAC instruments that operate on the ionization principle are broken down into three main categories based on what?
    15·1 answer
  • You have created a new DHCP scope with address range 192.168.1.1 to 192.168.1.254. You have five servers configured with static
    8·1 answer
  • Match each scenario to the absolute value expression that describes it. 1. the distance moved when going backwards five spaces i
    13·2 answers
  • To comply with ATC instructions for altitude changes of more than 1,000 feet, what rate of climb or descent should be used?
    5·1 answer
  • To access WordPad, Jill will click on Start, All Programs, Accessories, and WordPad. To access Notepad, Karl will click on Start
    14·1 answer
  • PLEASE FASTTTTT
    8·2 answers
  • What does the computer receive when you press a key on a laptop keyboard?
    8·1 answer
  • What does a companys code of ehtics cover
    13·2 answers
  • explain how principles of computational thinking skills are applied in finding solutions that can be interpreted into software a
    13·1 answer
  • How to type an absolute reference formula in exel
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!