Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Exercise#2: All Purpose Function Write a main() function that prompts the user to enter a positive integer n then calls the following function which

image text in transcribed C++
Exercise#2: All Purpose Function Write a main() function that prompts the user to enter a positive integer n then calls the following function which generates n random numbers each of which is between 35 and 99: void allPurpose(int, int&, int&, float&) The function finds the minimum, maximum, and average of the generated numbers. The main() function prints all the generated numbers, the minimum, the maximum, and the average. Sample Input/ output: ter hou many nunbers: 10 he generated nunbers are: 379288 61 96 93 97 40 76 94 35 37 he nininun is: 35 he maxinum is:9 he average is: 62.9

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_2

Step: 3

blur-text-image_step3

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

More Books

Students also viewed these Databases questions