Write a method called count that accepts an array of Strings and a String as its parameters. This…

Write a method called count that accepts an array of Strings and a String as its parameters. This…
Write a method called count that accepts an array of Strings and a String as its parameters. This method counts the number of the times the given String has appeared in the array and displays it on the screen.. Also this method must display the indexes that the given string has appeared in the array. Look at the sample output for clarfication Requirements: Solutions not satisfying the requirements will get zero points. • No print/println in the for loop can be used. Solutions using print/println in the for loop will get zero points. • No pre-written methods form the Arrays class can be used. Solution using any of those methods will get zero points • no pre-written methods from any of Java classes can be used. · no methods from the String class can be used. The only method that can be used is equals method from the String class. Sample output: assume that array s contains: {Alex, Mary, john, Mary, Alex, Alex, Robert, kim, Kim, Kim} the call count(s, “Mary') should produce the following output. In the array: {Alex, Mary, john, Mary, Alex, Alex, Robert, kim, Kim, K im} The word Mary has repeated 2 times The indexes that the word Mary has appeared are: 1, 3 There is an inflation so that prices of items go up at a certain rate. Alex wants to buy a laptop in certain 4 years. The current price of the item is 1000$ and the yearly inflation rate is 2.5 percent. Alex wants to know the price of the item in each year for the next 4 years. Write a method that accepts the price of the item and the inflation rate as its parameter. This method must display the price increase per year and the price of the time for each year. Your method must work with any price and any inflation rate. The price 1000 and rate 2.5 is just an example. Here is a sample output with the call price(1000, 2,5) Increase in price after the year 1: 25.0 The price after the year 1: 1025.0 Increase in price after the year 2: 51.25 The price after the year 2: 1076.25 Increase in price after the year 3: 80.71875 The price after the year 3: 1156.96875 Increase in price after the year 4: 115.696875 The price after the year 4: 1272.665625 May 13 2022 07:26 PM

Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more
Open chat
1
You can contact our live agent via WhatsApp! Via + 1 (409) 205-8984

Feel free to ask questions, clarifications, or discounts available when placing an order.

Order your essay today and save 30% with the discount code DISCOUNT