+include +include cetime> // defines the time () Eunctionusing namespace std;void Randomstatistics_Calc (doublek, doublek, int, int, int):W returns the total sum and mean OF random numbero,...


Question 1:<br>Please design and write C++ code of a user defined function
+include +include cetime> // defines the time () Eunction using namespace std; void Randomstatistics_Calc (doublek, doublek, int, int, int): W returns the total sum and mean OF random numbero, generated as per description; int main () 3(/ returne the area and circumference of a circle with radius int min, max, N double sumn, avg: cout < "enter="" minimum="" of="" the="" random="" range:="" ";="" cin="">> min; // lowest nunber cout < "enter="" maximum="" of="" the="" random="" range:="" "7="" cin="">> max; / highest number cout < "enter="" the="" count="" of="" random="" numbers="" to="" be="" generated:="" ";="" cin="">> N; // Total random numbers // call of Eunetion RandomStatistics Calc(sum, avg, min, max, N) : cout < "\n\t="" the="" total="" sum="" of="" random="" numbers="" -=""><>< "\n\t="" the="" mean="" of="" random="" numbers="<
Extracted text: Question 1: Please design and write C++ code of a user defined function "Randomstatistics Cale"". It receives information as values from the main() and return total-sum and average values of the generated random numbers as reference to the main(). Keep your code commented and indented for clarity of reading. The main() is given below: include +include +include cetime> // defines the time () Eunction using namespace std; void Randomstatistics_Calc (doublek, doublek, int, int, int): W returns the total sum and mean OF random numbero, generated as per description; int main () 3(/ returne the area and circumference of a circle with radius int min, max, N double sumn, avg: cout < "enter="" minimum="" of="" the="" random="" range:="" ";="" cin="">> min; // lowest nunber cout < "enter="" maximum="" of="" the="" random="" range:="" "7="" cin="">> max; / highest number cout < "enter="" the="" count="" of="" random="" numbers="" to="" be="" generated:="" ";="" cin="">> N; // Total random numbers // call of Eunetion RandomStatistics Calc(sum, avg, min, max, N) : cout < "\n\t="" the="" total="" sum="" of="" random="" numbers="" -=""><>< "\n\t the mean of random numbers = "<
Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here