Question: I need help with a C + + program. This is my final project for this class. Please help and follow the instructions . My
I need help with a C program. This is my final project for this class. Please help and follow the instructions My project is a Basic foreign language translator load from files and storesearch arrays of structs
The program should do the following. Read a parallel list of words from two files and store it in an array or two file IO Then prompt the user for a sentence and parse out the words like we did in chapter cstrings Finally, you will need to search the array for the word and find and display the translated word. Yes, it will be a very basic translator no conjugations and such
Here is my proposal
Project Proposal: Simple Language Translator
Objective: Develop a basic EnglishtoSpanish sentence translator using C that reads parallel lists of words from two files, stores them in arrays, prompts the user for a sentence, parses the words, and then searches for and displays the translated words.
Incorporated Concepts:
File IO Reading Parallel Lists:
Utilize File IO operations in C to read parallel lists of words from two files.
Store the words in separate arrays for retrieval.
Cstrings Parsing User Input:
Prompt the user for a sentence.
Parse the input sentence into individual words using Cstrings.
Sear aching Linear Search:
Implement a linear search algorithm to search for each word in the array of translated words.
Display the translated words corresponding to the user's input.
Process:
Read Parallel Lists from Files:
Read pairs of words from two files and store them in arrays.
User Input and Cstrings:
Allow the user to enter a sentence.
Parse the input sentence into individual words using Cstrings.
Linear Search for Word Translation:
Perform a linear search to find the Spanish translation for each English word.
Functions:
Read and Store Words:
Read words from files and store them in parallel arrays.
Parse User Input:
Prompt user for a sentence and parse it into individual words.
Linear Search for Translation:
Search for the Spanish translation of each English word.
Instructions from the teacher :
Basic foreign language translator load from files and storesearch arrays of structs
Notes: This will just to a basic translation no or conjugating anything fancy like that
Create short, parallel word lists in separate files
Load the lists into parallel arrays or an array of structs
Read and parse the user input into words
Search through the array for the proper word and find the associated word in the other language.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
