Question: This is in C++ please help 1. The Sum, the Largest and the Smallest (required) 1) Generate 10 random numbers between -20 to 20. -

This is in C++ please help

This is in C++ please help 1. The Sum, the Largest and

1. The Sum, the Largest and the Smallest (required) 1) Generate 10 random numbers between -20 to 20. - a function randomInt(int, int) should be defined and called. 2) Count the numbers of positive numbers, and negative 3) Calculate the sum of all the numbers 4) Calculate the average of all the numbers. 5) Find the largest and smallest numbers generated. Sample Output: Lab \#5 by John Smith - Sum, the Largest and the Smallest The 10 random numbers are: 256921091583 There were a total of 6 positive numbers entered There were a total of 4 negative numbers entered The sum of all numbers is: 17 The average of all the numbers is: 1.7 The largest number is 15 The smallest number is = Would you like to do it again? N

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!