Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

use C language, writing a simple program that implements a translation tool that translates words from English to Spanish and Spanish to English; or from

use C language, writing a simple program that implements a translation tool that translates words from English to Spanish and Spanish to English; or from English to French and French to English, using the two bilingual dictionaries shown below.

image text in transcribed

image text in transcribed

Please make sure to follow two requirement:

1. Making the program case insensitive

2. Handling misspellings or words that are not in the dictionary

English Cat Dog Bird Mouse Cow Tiger Horse Monkey | Spanish Gato Perro Pajaro Raton Vaca Tigre Caballo Mono English Cat Dog Bird Mouse Cow Tiger Horse Monkey French Chat Chien Oiseau Souris Vache Tigre Cheval Singe Create and fill two two-dimensional arrays: ES and EF corresponding to the two tables shown above, respectively. You can hard-code these arrays. Write to four functions: trans_ES, trans_SE, trans_EF, and trans_FE that take as input a word from your dictionary in the source language, English, Spanish, English or French, respectively, and output its translation in the destination language, Spanish, English, French or English, respectively. Write a main program that will work as follows: o It will first ask the user: Please enter a word to translate: o It will then read that word. o It will then ask the user: Please enter the source language: o It will read the source language. o It will then ask the user: "Please enter the destination language. o It will read the destination language. o It will then print: is word that translates as in . o It will then print: Do you want to translate a new word? (Y/N): O The program will start again if the user responds Y. It will end if the user enters N. Example of a run: Please enter a word to translate: tigre Please enter the source language: spanish Please enter the destination language: english tigre is a Spanish word that translates as tiger in English. Do you want to translate a new word? (Y/N)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Students also viewed these Databases questions