Computers and Technology

Count positive and negative number and compute the average. the program will have the user input an unspecified number of integers.
determine how many are positive and negative.
compute the total and average. use a while loop.
output as follows:
enter an integer, the input ends if it is 0: 1 2 -1 3 0
the number of positives: 3
the number of negatives: 1
the total is 5.0
the average is 1.25

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 04:30, justbepunky
There is a simple pattern for determining if a binary number is odd. what is it and why does this pattern occur? how many bits would you need if you wanted to have the ability to count up to 1000? how high could you count in binary if you used all 10 of your fingers as bits? (finger up means 1, finger down means 0)
Answers: 3
image
Computers and Technology, 22.06.2019 22:30, raiapowell
I'll mark brainliest if answered right! with which feature or menu option of a word processing program can you make an image like this? you can get this image using the option of a word processing program.
Answers: 1
image
Computers and Technology, 23.06.2019 15:10, cathyjuan
What role did women fill during world war ii?
Answers: 1
image
Computers and Technology, 23.06.2019 22:20, tagerryawilson6
If i uninstall nba 2k 19 from my ps4 will my career be gone forever?
Answers: 2
Do you know the correct answer?
Count positive and negative number and compute the average. the program will have the user input an...

Questions in other subjects:

Konu
Mathematics, 07.04.2020 23:17
Konu
Mathematics, 07.04.2020 23:17