Threesuns

Email

Contact

All Semesters

Semesters

All Courses

Courses

C Language

CSCI2473

3 credits

Labs

Tut

Lab

100 points

Requirements

Both programs compile without error or warning10
Program 1 converts english to tut correctly25
Program 2 converts tut to english correctly25
At least one function is written and used10
The function has high functional integrity, is loosely coupled, is useful, and reusable20
A header file is included giving access to the function10
Total100 pts

Objective

To practice with arrays, functions, and header files

Instructions

The Language of Tut

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?".

The Programs

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.

Functions and Header Files

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.

Extras