Write a program that reads any 5 numbers as in the given sample of output below:   Sample of output: Enter any 5 integer value.  1  2  -1  3 0   The number of positive value  is 3 The numbers are:  1 2 3 The number of negative value is 1 The numbers are:  -1 The 0 number is 1   The total is 5.0 The average is 1.25

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 14PE
icon
Related questions
Question

Write a program that reads any 5 numbers as in the given sample of output below:

 

Sample of output:

Enter any 5 integer value.

 1  2  -1  3 0

 

The number of positive value  is 3

The numbers are:  1 2 3

The number of negative value is 1

The numbers are:  -1

The 0 number is 1

 

The total is 5.0

The average is 1.25

 

QUESTION 3
Write a program that reads any 5 numbers as in the given sample of output below.
Sample of output
Enter any S integer value.
12 -1 30
The mumber of positive yalue is 3
The mumbers are: 123
The mumber of negative yalue is I
The numbers are: -1
The O number is I
The total is 5.0
The average is 1.25
Transcribed Image Text:QUESTION 3 Write a program that reads any 5 numbers as in the given sample of output below. Sample of output Enter any S integer value. 12 -1 30 The mumber of positive yalue is 3 The mumbers are: 123 The mumber of negative yalue is I The numbers are: -1 The O number is I The total is 5.0 The average is 1.25
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Constants and Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning