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

C++ functions
 C++ functions Implement the function RandomCount. The function will generate 10

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 using namespace std; int main () srand (time(e)) int cN, cP, cZ; RandomCount (cN, cP, cZ); cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!