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, 23.06.2019 11:50
While preforming before operation pmcs, you notice the front right tire appears slightly under-inflated. what is the proper action?
Answers: 3
question
Computers and Technology, 23.06.2019 12:00
What does the level 1 topic in a word outline become in powerpoint? a. first-level bullet item b. slide title c. third-level bullet item d. second-level bullet item
Answers: 1
question
Computers and Technology, 25.06.2019 02:00
What type of multimedia is a game cd? game cds are examples of multimedia
Answers: 1
question
Computers and Technology, 25.06.2019 09:20
The adbusters' image of the gap logo on the silhouette of a head most likely relays the message that: a.the man in the ad needs a hat from the gap b.consumers should be suspicious of gap ads c.gap clothes make you look intelligent d.everyone should have the gap on their minds
Answers: 1
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
Mathematics, 20.10.2020 16:01
question
Mathematics, 20.10.2020 16:01
Questions on the website: 13722363