Computers and Technology

Ask the user to enter as many ints as they want, and tell them to type “done” when they are done entering the numbers. Store these numbers in a data structure. (Think carefully about which one to use.) Write a method that computes the sum of all the elements in the data structure. Write a method that finds the smallest positive number in the data structure (return 9999 if there aren’t any positive numbers). Call these methods on the data structure with the user’s numbers.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 03:00, TamB01
How can i clip a picture to a question on the computer?
Answers: 1
image
Computers and Technology, 22.06.2019 11:30, LindseyN1
One subtask in the game is to roll the dice. explain why is roll the dice an abstraction.
Answers: 3
image
Computers and Technology, 22.06.2019 11:30, mmimay3501
What do character formats do for your document's message? a. set the tone b. provide organization c. provide clarity d. set how texts align with documents
Answers: 2
image
Computers and Technology, 23.06.2019 09:30, ranmmm
The place where the extended axis of the earth would touch the celestial sphere is called the celestial
Answers: 1
Do you know the correct answer?
Ask the user to enter as many ints as they want, and tell them to type “done” when they are done ent...

Questions in other subjects: