subject

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

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:00
6. the is particularly susceptible to the effects of alcohol because it receives a large portion of total blood flow and has a high concentration of neurons. a. heart b. pancreas c. brain d. liver
Answers: 2
question
Computers and Technology, 23.06.2019 07:30
What is the original authority for copyright laws
Answers: 1
question
Computers and Technology, 24.06.2019 08:00
Arah has entered data about football players from team a and team b in a worksheet. she enters names of players from team a with details about each player in different columns of the worksheet. similarly, she enters details of all the players from team b. which option will her view the data for team a and team b in two separate sections after printing? a. page break view b. freeze pane view c. split screen view d. full screen view e. zoom out view
Answers: 1
question
Computers and Technology, 24.06.2019 12:40
Match the feature to the network architecture. expensive to set up useful for a small organization easy to track files has a central server inexpensive to set up difficult to track files useful for a large organization does not have a central server client- server network peer-to-peer network
Answers: 3
You know the right answer?
Count positive and negative number and compute the average. the program will have the user input an...
Questions
question
Mathematics, 13.07.2021 19:50
question
Geography, 13.07.2021 19:50
question
Law, 13.07.2021 19:50
Questions on the website: 13722363