Question: pls provide code in C WRITE A PROGRAM that counts the number of negative values, the number of positive values and the number of zeros

pls provide code in C
WRITE A PROGRAM that counts the number of negative values, the number of positive values and the number of zeros in a float amay. Specificially, the program should: greet the user prompt for and input the length of the array . idiotproof the length of the array; . 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; e count the number of positive values; e count the number of zeros; . output the numbers of negative, positive and zero values in the array e deallocate the array HINT: To determine how many of the input values have a particular property, you need to examine each value in turn to see whether it has that property. Specifically: Before you start examining the input values, the number of input values that you've examined 2. Examine each input value in turn. If it has the property, then the number of input values that NOTE: You MUST calculate each of the three counts in its own for loop: you are ABSOLUTELY You DON'T have to use comments. Otherwise, all rules for Progrunning Projects (through PP#5) Homework question only, you may submit a script file of the standard kind, in place of 1. so far that have that property is zero you've examined so far that have that property increases by one. FORBIDDEN to calculate more than one of them in the same for loop
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
