subject

(Sum and average of a set of integers entered by the user) Write a Java program that reads an unspecified number of integers (but no more than twenty, total), determined how many of those were positive vs. negative, and computes the total sum and the average of the entered values. The program stops prompting the user to enter more integers once either 0 has been entered as input, or if there have been twenty entered (non-zero) values. You are encouraged, but not strictly required to use methods. Show the output of your Java program on five sets of inputs, total. Three sets are your choice, under the constraint that there should be at least five input non-zero values before the first 0 is encountered. The remaining two test runs should be on the following input sequences: 1 2-1 35 10 -5 -10 0 1 -1 2-2 3-3 4-4 5 -5 0

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 20:30
Write 150 words on what kind of website would you like to make in the future? what sites would you like to model yours after?
Answers: 2
question
Computers and Technology, 22.06.2019 16:30
You have inserted new slides based on a word outline. how do you format these new slides to match the powerpoint presentation formatting? a. select all slides in the presentation and click format on the home tab. b. select the new slides and click reset on the home tab. c. select all slides in the presentation and click reset on the home tab. d. select the new slides and click format on the home tab.
Answers: 2
question
Computers and Technology, 22.06.2019 20:50
What is the difference between windows 7 and windows 10?
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most? a)give the file a unique name b)name the file in yymmdd format c)use descriptive name while naming the files d)use capital letters while naming the file
Answers: 3
You know the right answer?
(Sum and average of a set of integers entered by the user) Write a Java program that reads an unspec...
Questions
question
Mathematics, 30.05.2020 06:57
question
History, 30.05.2020 06:57
Questions on the website: 13722363