Question: need help with getNumDims() C language .int getNumDims() This function asks for an integer between 1-10. It keeps asking while the number the user enters
need help with getNumDims() C language

.int getNumDims() This function asks for an integer between 1-10. It keeps asking while the number the user enters is outside of this range. It returns the entered number when it is valid. .void enterVector (const char* arrayName, float* array, int arrayLen) This function lets the user enter the arrayLen numbers of array array with name arrayName float computeDistance (float* array0, floats array1, int arrayLen) This function computes and returns the distance between both vectors. (The formula for this is sqrt( sum(i-0.arrayLen-1, (array0i]-arrayi)) . int main () Given below: // Compile with: // gcc multiDimDist.c -1m -o multiDimDist #include #include #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
