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.
-
Is there any validity in rule-of-thumb ratios for all corporations (for example, a current ratio of 2 to 1 or debt to assets of 50 percent)?
-
Repeat Probs. 25.1 through 25.5 but for the following initial-value problem over the interval from x = 0 to 1: dy/dx = (1 + 2x)yy(0) = 1
-
In a contract dispute between a US company and a Canadian company, the contract itself referred to provisions of the Uniform Commercial Code. Do these references alone preempt the contract from being...
-
You are provided with the following information for Lahti Inc. for the month ended June 30, 2014. Lahti uses the periodic method for inventory. Instructions (a) Calculate (i) ending inventory , (ii)...
-
. Imagine you have an on-premises eCommerce site for a small local jewelry store. . The jewelry store sells rings, watches, necklaces and bracelets. . Review Amazon Web Services, Microsoft Azure and...
-
Jenny Smith, 28, just received a promotion at work. Her salary has increased to $40 000 and she is now eligible to participate in her employers pension plan. The employer matches employee...
-
Roger rents his beach house for 90 days and uses it for personal use for 20 days during the year. The rental income is $10,000 and the expenses are as follows: Mortgage Interest $11,000 Telephone and...
-
Looking Good manufactures and sells a variety of makeup and beauty products. The new CEO has asked for information about the estimated operations of the firm for next year. The CEO is given the...
-
Catagory Year 1 Pre-Launch R&D $600,000.00 Advertising $6,380,000.00 Trade Promotions $8,150,000.00 Units $5,887,704.27 Nature Price $4.45 Cost/Unit $3.63 6. For us to have a contribution margin of...
-
Fei and Wei formed the FW Ltd. general partnership. Fei contributed a building and land with a FMV of $130,000 (building $100,000 and land $30,000), nonrecourse debt of $60,000, and a tax basis of...
-
During 20X4, Bowyer Company introduced a new product carrying a two-year warranty against defects. The estimated warranty costs related to dollar sales are 2% within 12 months following the sale and...
-
8. What is printed? int nums[5] = {11, 22, 33, 44, 55 }; int* ptr = nums + 5; int i; for (i=0; i < 5; ++i) printf(" %d", *--ptr );
-
Consider the following two savings plans that you think about starting at the age of 21. Option 1: Save $2,000 a year for 10 years. At the end of 10 years, make no further investment, but invest the...
-
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...
-
Lewis Edwards decides to branch out on his own and set up his own private practice as an accountant. Events occurring in March 2019 are as follows. Ignore GST. Required (a) After analyzing the events...
-
On 1 March 2017, James Taylor decided to open Taylors Tailormade that makes suits, trousers and jackets, and repairs and alters clothes. He contributed for this purpose sewing equipment $46 000 and a...
-
In December 2019, Mike Mills opened a miniature golf course to cater for the summer holiday tourists and completed the transactions below during its first month of operations. For the sake of...
Study smarter with the SolutionInn App