subject

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.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 10:00
Hey i just logged on and one of the moderators deleted a bunch of my answers to questions, even though the answers were right and the people it doesn't make sense but if anyone wants to talk about anything just message me lol (this is super random lol)
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
In which of the following ways can using test-taking tips you? a. you can focus on the information that you need to study. b. you will see the answers to the test. c. you will study more. d. you will be less organized.
Answers: 1
question
Computers and Technology, 24.06.2019 12:00
An npn transistor is correctly biased and turned on if the a. base is negative. b. collector is negative. c. collector is positive with respect to the emitter and negative with respect to the base. d. collector is the most positive lead followed by the base.
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
Python. primary u.s. interstate highways are numbered 1-99. odd numbers (like the 5 or 95) go north/south, and evens (like the 10 or 90) go east/west. auxiliary highways are numbered 100-999, and service the primary highway indicated by the rightmost two digits. thus, the 405 services the 5, and the 290 services the 90. given a highway number, indicate whether it is a primary or auxiliary highway. if auxiliary, indicate what primary highway it serves. also indicate if the (primary) highway runs north/south or east/west.
Answers: 1
You know the right answer?
Ask the user to enter as many ints as they want, and tell them to type “done” when they are done ent...
Questions
question
Mathematics, 18.02.2021 03:50
question
Mathematics, 18.02.2021 03:50
question
Health, 18.02.2021 03:50
question
English, 18.02.2021 03:50
question
Mathematics, 18.02.2021 03:50
Questions on the website: 13722363