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, 23.06.2019 16:30
20 points archie wants to use a reflector as he photographs a newlywed couple. what would he consider in his choice? a. shadow and sunny b. homemade and professional c. lamps and boards d. incident and reflected e. neutral density and enhancement
Answers: 3
question
Computers and Technology, 24.06.2019 12:30
Select all that apply. what two keys listed below should you use to enter data in an excel worksheet? tab backspace enter right arrow
Answers: 2
question
Computers and Technology, 24.06.2019 17:30
When you type january in a cell, then copy it using the fill handle to the cells below and the data automatically changes to february, march, april, and so on, what is this feature called? auto fill automaticcopy monthfill textfill
Answers: 1
question
Computers and Technology, 24.06.2019 22:30
When can you access the bios setup utility?
Answers: 1
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, 24.06.2019 05:00
question
History, 24.06.2019 05:00
question
Biology, 24.06.2019 05:00
Questions on the website: 13722361