subject

Create a new program that will ask a user to enter a number repeatedly. This program will calculate 2 averages based on the sign of the inputted numbers: ave_pos (average of all positive numbers) and ave_neg (average of all negative numbers). The program will stop when the user enters a β€˜0’.Before writing the program in C code, write a pseudocode to describe your approach to this problem. Here are the examples of the output (input is in italic and bold):
Please enter an integer: 1
Please enter an integer: -1
Please enter an integer: 2
Please enter an integer: -2
Please enter an integer: 0
Positive average: 1
Negative average: -1
Please enter an integer: -1
Please enter an integer: -2
Please enter an integer: -3
Please enter an integer: 0
Negative average: -2

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:10
10. when you create a pivottable, you need to specify where to find the data for the pivottable. is it true
Answers: 2
question
Computers and Technology, 23.06.2019 08:00
Which argument is not a valid filter? does not equal this quarter filter by cell color all of these are valid filter arguments.
Answers: 2
question
Computers and Technology, 23.06.2019 15:00
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a.an advanced knowledge of physics and math b.an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 1
question
Computers and Technology, 24.06.2019 03:40
4. does the kernel phenotype distribution support the idea that the cob is the result of a dihybrid cross? what information supports your answer? if a dihybrid cross (i.e. f1 to f2 of standard mendelian crosses) is not indicated what conditions might contribute to this finding.
Answers: 2
You know the right answer?
Create a new program that will ask a user to enter a number repeatedly. This program will calculate...
Questions
question
Chemistry, 06.03.2020 20:34
question
Mathematics, 06.03.2020 20:35
question
Mathematics, 06.03.2020 20:35