i need a java code please do it in 1 hr I'll give you 5likes please test
Fantastic news! We've Found the answer you've been seeking!
Question:
i need a java code please do it in 1 hr I'll give you 5likes please test your code before submitting iti want output screen shot also rotate the image if you fine any difficulty
Transcribed Image Text:
Consider a non-empty string instr containing only lower-case alphabets and an array of strings inarr, containing a collection of words, with its elements separated by (',') comma. There is one-to-one correspondence between the characters of instr and the words in inarr. Identify and print outstr based on the below logic: . For each of the unique characters in instr: o Identify the index firstind of its first occurrence in instr and the list of indices indexlist for the other occurrences, if any o Identify the corresponding string str in inarr at index firstind If the string str is present in inarr across all the identified indices of indexlist and ONLY at these identified indices then the unique character in instr is said to have a special mapped word in inarr • Add ONLY those unique character(s) having a special mapped word to outstr in their order of occurrence in instr . If there is no character identified having a special mapped word, assign "NA" in upper case to outstr Input format: First line contains instr Second line contains inarr with its elements separated by (',') comma Read the inputs from standard input stream Java 1 23 4 5 6 7 8 9 10 11 12 13 Consider a non-empty string instr containing only lower-case alphabets and an array of strings inarr, containing a collection of words, with its elements separated by (',') comma. There is one-to-one correspondence between the characters of instr and the words in inarr. Identify and print outstr based on the below logic: . For each of the unique characters in instr: o Identify the index firstind of its first occurrence in instr and the list of indices indexlist for the other occurrences, if any o Identify the corresponding string str in inarr at index firstind If the string str is present in inarr across all the identified indices of indexlist and ONLY at these identified indices then the unique character in instr is said to have a special mapped word in inarr • Add ONLY those unique character(s) having a special mapped word to outstr in their order of occurrence in instr . If there is no character identified having a special mapped word, assign "NA" in upper case to outstr Input format: First line contains instr Second line contains inarr with its elements separated by (',') comma Read the inputs from standard input stream Java 1 23 4 5 6 7 8 9 10 11 12 13
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Do you work hard for your money? Java professionals think they do, reporting long working hours at their jobs. Java developers from around the world were surveyed about the number of hours they work...
-
PLEASE DO IT IN STATGRAPHICS. STATISTICS AND PROBABILITY. http://www.statgraphicsstratus.com/default.aspx Copy the file Height_data.txt from:...
-
Want to lose weight? You can do it by cutting calories, as long as you get enough nutritional value from the foods that you do eat! Below you will see a visual representation of the number of...
-
Using a resource-based view, explain why some firms improve their economic performance by adopting a CSR strategy, whereas others achieve no results or damaging results.
-
At the end of March, the first month of operations, the following selected data were taken from the financial statements of Kurt Reibel, an attorney: Net income for March ......... $ 150,000 Total...
-
In which of the following countries is income mobility likely higher? Explain your answer. a. A country with a poverty rate of 25 percent, of which 80 percent represents chronic poverty. b. A country...
-
Find the general solution of the given equation by the method given. a. \(y^{\prime \prime}-3 y^{\prime}+2 y=10\). Method of Undetermined Coefficients. b. \(y^{\prime \prime}+y^{\prime}=3 x^{2}\)....
-
Presented below is information related to Dino Radja Company. Instructions Compute the ending inventory for Dino Radja Company for 2005 through 2010 using the dollar-value LIFOmethod. Ending...
-
A client explains that her firm's value must be affected by the choice of explicit forecast horizon. To build a model to test her claim, you are provided the information of her company as below: ...
-
Daniel and Elvis have been in partnership since 6 April 1995, making up accounts to 5 April. On 31 December 2020 Elvis resigned as a partner, and was replaced on 1 January 2021 by Frank. For 20...
-
1) Explain Fiscal Policy in general and the components of fiscal policy. 2) Please include and Explain significant tools used by the government of Canada as a part of their Fiscal Policy. 3) How the...
-
1. Differentiate cost avoidance, reduction, and control using the following sample matrix: Areas Nature Scope Etc. Avoidance Reduction Control Note: You may indicate as many areas of differentiation...
-
create a bench mark fraction for 15/46? with a high or low estimate
-
Identify something that has DROPPED in price over time. Why did it drop? 2. Identify something that has INCREASED in price over time. Why has it increased? Put site or reference for your response.
-
There are so many specific instructional issues for students with hearing loss that it's a wonder as many of them are integrated into general education as they are. After your reading, do you feel...
-
What were the findings from the study of Coffman, et.al, 2016? Paraphrase those findings in your own words and with a scholarly voice. Include a citation. Additionally, reflect on the process of...
-
A Firm intends to invest some capital for a period of 15 years; the Firm's Management considers three Options, each consisting of purchasing a machinery of a specific brand, different for each...
-
Sally hires a maid to work in her home for $250 per month. The maid is 25 years old and not related to Sally. During 2012, the maid worked 10 months for Sally. a. What is the amount of Social...
-
Clarita is a single taxpayer with two dependent children, ages 10 and 12. Clarita pays $3,000 in qualified child care expenses during the year. If her adjusted gross income (all from wages) for the...
-
Kent Pham, CPA, is a 45-year-old single taxpayer living at 169 Trendie Street, La Jolla, CA 92037. His Social Security number is 865-68-9635. In 2012, Kent's W-2 as the controller of a local...
-
Rewrite the approximate factorization method of Section 9.3 .3 for the case of three-dimensional heat conduction equation.
-
The two-dimensional heat equation is solved in a rectangular domain \(0
-
Show that the ADI scheme for two-dimensional heat equation can be obtained from the Crank-Nicolson scheme ( 9.35 ) by approximate factorization and that the factorization error is \(O\left((\Delta...
Study smarter with the SolutionInn App