High School Mathematics Extensions/Mathematical Programming/Processing Commands

Explanation
Two new functions were added: char retrieve_keypress and char validate(char check_me) and two functions were changed: void input_message, char input.

Additions

char retrieve_keypress
 * This function make sure program input and output are displayed on different lines on the console. This makes program error messages clearer, and will make the program output clearer when we print it.
 * reads a key from the console.
 * outputs a newline character to the console after it reads a key. This makes the program error message clearer, and will make the program output clearer when we print it.

char validate (char checkme)
 * Returns true if the character passed to it is in this set: {'=' '+' '-' 'd' 'D' 'x' 'X'} and false if it is not.

Changes

void input_message
 * Changed to prompt for the commands this program will process.

char input
 * Changed to
 * call retrieve_keypress to get a command
 * to validate the command
 * to print an error message and instructions if the command is not valid.

Code to change
Add and replace the following code:

Next Step

 * ../Output Routines/
 * ../The Complete Program/