Question: C++ functions Implement the function RandomCount. The function will generate 10 random numbers from-10 to 10. Display the random numbers as shown in the sample
Implement the function RandomCount. The function will generate 10 random numbers from-10 to 10. Display the random numbers as shown in the sample output. Return the count of the negative numbers using the reference parameter countN, the count of positive numbers using the reference parameter countP, and the count of zeros using the reference parameter countZ. The main) function is provided on the next page. You only need to implement the function RandomCount() Note: Your output will be different because numbers are generated randomly. Sample Input/ Output The random numbers are: 10 2 -1 0 1 7-3-10 -9-1 ount of Negative: 5 ount of Positive: 4 ount of Zeros: 1 The random numbers are: 10 -2 2-3 9 10 5 8 3 8 ount of Negative: 2 ount of Positive: 8 ount of Zeros: 0 #include #include #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
