Hello Need Help Rewrite Program Count Number Negative Values Number Positive Values Numbe Q37192321

Hello, I need help with this.

Rewrite this program to count the number of negative values, thenumber of positive values and the number of zeros in a floatingpoint array. Instead of performing these counts inside the mainprogram, each count should be calculated by a USER-DEFINEDFUNCTION.

Specificially, the program should:

• greet the user,
• prompt for and input the length of the array;
• idiotproof the array length;
• dynamically allocate the array;
• check that the allocation was successful;
• prompt for and input the values in the array;
• count the number of negative values by calling a USER-DEFINEDFUNCTION;

• count the number of positive values by calling

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.