Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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? NStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started