166k views
3 votes
Ask the user to enter integers until they type done. Compute the sum of all elements and find the smallest positive number.

a) Sum of all elements
b) Smallest positive number
c) Neither
d) Both

1 Answer

4 votes

Final answer:

The question is about writing a process to sum integers and find the smallest positive number among them. The correct answer is that both the sum of all elements and the smallest positive number will be computed, so option d) Both is correct.

Step-by-step explanation:

The subject matter of this question is related to mathematics, specifically dealing with integers and operation on these elements. The goal is to write a program or process that allows a user to enter integers until they type 'done'. After that, compute two things: the sum of all elements entered, and identify the smallest positive number among them. The correct answers to the parts of the question are: a) Sum of all elements, and b) Smallest positive number. Therefore, the right choice is d) Both.

User PlayDough
by
7.9k points

No related questions found