Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

6th Edition

1943153035, 978-1943153039

More Books

Students also viewed these Databases questions