Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use C language: Translates words from English to Spanish and Spanish to English; or from English to French and French to English, using the two
Use C language:
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.
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: "
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started