Question: This is a problem to be solved in basic c language without any high level functions can be used: getchar, for, do, while, etc. Thank
This is a problem to be solved in basic c language without any high level functions
can be used: getchar, for, do, while, etc.

Thank u for your help! I'm stuck on a part of it.
Problem 2 - Characters (50 points) In this program, we define an input to be in order if the characters of the input 1. are alphabetic letters, lower case or upper case. 2. any two neighboring letters (regardless of case) are in order, for example, 'c' and 'k' are in order but 's' and 'b' is not in order because 'd' is less than 'k' and 's' is greater than 'b', considering their ASCII values. 3. if two neighboring letters are same, they are considered in order. Write a program that determines if the input is in order. a 1) Assume the input contains two or more characters. 2) Convert input characters to lower case before comparison. 3) The user input ends with the user pressing the enter key (a new line character). 4) Use getchar() to read in the input. Character handling functions are allowed. Hint: use two variables to keep track of two neighboring characters. Example #1: Input: "all" Output: In order Example #2: Input: "littlepigs" Output: Not in order Example #3: Input: "CS" Output: In order Example #4: Input: "F28" Output: Not in order
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
