Question: I need help programing this in C please. IsAscending - determine if array elements are in ascending order 1 V7 Define the IsAscending function 2
I need help programing this in C please.
IsAscending - determine if array elements are in ascending order 1 V7 Define the IsAscending function 2 II- the first parameter should be an array of double elements 3 II - the second parameter should be an integer that specifies 4 IIhow many elements are in the array Write a function called IsAscending. It should take two parameters an array of double elements . an integer, specifying how many elements are in the array / The function returns 1 if the array elements are in 6 I/ ascending order, 0 otherwise. The function should return an int value as follows: if the array is in asending order, meaning that each element is greater than the element preceeding it, the function should return 1 .otherwise, the function should return 0 Hint: the function should scan through pairs of values. As a special case, if the array has no elements, the function should return 1. Author: David Hovemeyer License: Creative Commons Attribution-ShareAlike 3.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
