#include #include #include // Monotonic Sequence // // A sequence of numbers is monotonically increasing if the values in the // sequence are sorted in oder. For example, 1, 2, 2, 4, 6 is a monotonic // sequence but 1, 4, 3, 5, 7 is not because 4 is greater than 3. Write a // complete Java program which tests if a sequence of numbers is monotonically // increasing. You can assume that the sequence is stored in an int array // (e.g., int seq[5] = {1, 4, 3, 5, 7}; ). #define N 5 int main() { int i; int a[N]={1, 4, 3, 5, 7}; int monotonic=1; for(i=0; i