5. Write a C++ program that reads in a list of Spanish words with English equivalents...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
5. Write a C++ program that reads in a list of Spanish words with English equivalents using STL Map pairs to write a basic low-level translation program. The Spanish word will be the key and the English word will be the value. Enter the file name from the keyboard. Refer to the sample output below. Sample Input File (partial): 46 rearrancar reboot pantalla screen texto text virus virus yo quiero una ordenador virus todas de los muchachos tienen interno memoria mi pelo es cafe tu quieres tinta con su papel rearrancar el ordenador a vacio el pantalla Sample Run: Enter the file name: translate.txt i want a computer virus all of the boys have internal memory my hair is brown you want ink with your paper reboot the computer to empty the screen Name the program: SpanToEngXX.cpp, where XX are your initials. 5. Write a C++ program that reads in a list of Spanish words with English equivalents using STL Map pairs to write a basic low-level translation program. The Spanish word will be the key and the English word will be the value. Enter the file name from the keyboard. Refer to the sample output below. Sample Input File (partial): 46 rearrancar reboot pantalla screen texto text virus virus yo quiero una ordenador virus todas de los muchachos tienen interno memoria mi pelo es cafe tu quieres tinta con su papel rearrancar el ordenador a vacio el pantalla Sample Run: Enter the file name: translate.txt i want a computer virus all of the boys have internal memory my hair is brown you want ink with your paper reboot the computer to empty the screen Name the program: SpanToEngXX.cpp, where XX are your initials.
Expert Answer:
Related Book For
Data Structures and Algorithm Analysis in Java
ISBN: 978-0132576277
3rd edition
Authors: Mark A. Weiss
Posted Date:
Students also viewed these programming questions
-
In this question assume that p and q are atomic formulae. (a) Compare and contrast path formulae and state formulae in temporal logic. [4 marks] (b) Describe and contrast the meanings of F(G p) and...
-
Multi-Star, Inc., had sales of $890,000, cost of sales and operating expenses of $450,000 and $200,000, respectively, and 10,000 shares of common stock outstanding. Calculate the amount of earnings...
-
St. John Technology uses a perpetual inventory system. The end-of-month unadjusted trial balance of St. John Technology at January 31, 2016, follows: Additional data at January 31, 2016: Requirements...
-
A firm manufactures three products, P1, P2 and P3, which it sells to two customers, C1 and C2. The number of items of each product that are sold to these customers is given by The firm charges both...
-
5 percent interest per month. The sterilizer was delivered on August 23, 1996. The last payment was received on April 21, 1998. At the time of the last payment, the defendant still owed the plaintiff...
-
Raven Design is a website design and consulting firm. The firm uses a job cost system, in which each client is a different job. Raven Design traces direct labor, licensing costs, and travel costs...
-
The homogeneous equation x12x2 x3 = 0 defines a null space U in R. Write the above linear system (of one equation) as a homogeneous matrix problem. Show, by derivation from the matrix above, that a...
-
Company AA and company BB each need $1 million in funds and are quoted the following rates in the fixed and floating markets. AA agrees to borrow at the fixed-rate and BB agrees to borrow at the...
-
Define the concepts of budget and forecast in financial management. Discuss how the effective use of budgeting and forecasting can impact an organization's overall success. Provide examples to...
-
a seasonal business has requested a short-term loan. What are the future sources of cash that are most appropriate to consider as sources of repayment?
-
int [] data = new int [10]; boolean [] toPrint = new boolean [10]; void setup() { for (int i=0; i < data.length; i=i+1) { data[i] = i* i; if (1 % 2 == 0) { toPrint[i] = true; } Trace the following...
-
This question is to be considered independently of all other questions relating to Hinsey Corporation. Refer to the original data when answering this question. The marketing manager believes that an...
-
Stockholders' equity, September 30, 2021 * $7 Accounts payable 9 Other assets 22 Other liabilities 3 Revenues 30 Expenses 21 Cash ? Solve for cash.
-
A tray-type distillation tower is to be used for separating a propane/propylene mixture. The multi-component feed to the tower is completely vapor at a temperature of 43.3 C, a pressure of 1668 kPa...
-
A condenser (heat exchanger) brings 1 kg/s water flow at 10 kPa quality 95% to saturated liquid at 10 kPa, as shown in Fig. P4.91. The cooling is done by lake water at 20C that returns to the lake at...
-
Suppose we need to perform M percolateUps and N deleteMins on a d-heap that initially has N elements. a. What is the total running time of all operations in terms of M, N, and d? b. If d = 2, what is...
-
a. Prove that for binary heaps, buildHeap does at most 2N2 comparisons between elements. b. Show that a heap of eight elements can be constructed in eight comparisons between heap elements. c. Give...
-
Prove that the running time of Shellsort, using the increment sequence suggested by Hibbard, is (N3/2) in the worst case. Hint: You can prove the bound by considering the special case of what...
-
Explain the effect of each of these on the shape and position of the countrys production-possibility curve: a. A proportionate increase in the total supplies (endowments) of all factors of...
-
Why does the HeckscherOhlin theory predict that most research and development (R&D) activity is done in the industrialized countries?
-
A free-trade equilibrium exists in which the United States exports machinery and imports clothing from the rest of the world. The goods are produced with two factors: capital and labor. The trade...
Study smarter with the SolutionInn App