Question
MUST BE IN C WRITE A PROGRAM that counts the number of negative values, the number of positive values and the number of zeros in
MUST BE 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 array.
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; count the number of positive values; count the number of zeros; output the numbers of negative, positive and zero values in the array; deallocate the array.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started