08.17.15 - 12.13.15
Both programs compile without error or warning | 10 pts |
Program 1 converts english to tut correctly | 25 pts |
Program 2 converts tut to english correctly | 25 pts |
At least one function is written and used | 10 pts |
The function has high functional integrity, is loosely coupled, is useful, and reusable | 20 pts |
A header file is included giving access to the function | 10 pts |
Total | 100 pts |
The tut language is a simple encoded language where words are spelled out and the letters "ut" are placed after every constant, vowels are left as they are. So the word "Hello", in tut become "Hutelutluto" The word "Goodbye" becomes "Gutoodutbutyute". The sentence "How are you today?", becomes "Hutowut arute yutou tutodutayut?".
For this lab you will need to write two (2) C programs. The first should be be able to accept an English sentence from the user and convert it into Tut and the second program should accept a Tut sentence from the user and convert it to English. Both the original and converted sentences should be displayed for the user in both programs.
Find at least one reason to create a function that can be used in both of the two programs. The function should have high functional integrity and be loosely coupled. The function should be made available through a header file that will be included into each of the two programs.
You should submit two C source code files and 1 header file for this assignment. Everything that's needed for the programs to compile must be included.