1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Westkost [7]
3 years ago
13

3. Write the code to print the No. 50 Fibonacci number. (2 points) 4. A homophone is one of two or more words that are pronounce

d alike but are different in meaning or spelling; for example, the words "two", "too", and "to". Write a Java program that uses HashMap to find the most words that has the same homophones and return the count of the number of words. (2 points)
Mathematics
1 answer:
DiKsa [7]3 years ago
8 0

Answer:

Answers explained below

Step-by-step explanation:

<u>SOLUTION 3</u>

//Till 50 numbers

import java.util.ArrayList;

import java.util.LinkedList;

public class Driver {

public static void main(String[] args) {

//Upto 50

int num = 50, x = 0, y = 1;

 

System.out.print("Till number " + num + ": ");

for (int i = 1; i <= num; ++i)

{

System.out.print(x + " + ");

int addition = x + y;

x = y;

y = addition;

}

}

}

<u>Solution 4: </u>

import java.util.ArrayList;

import java.util.Arrays;

import java.util.HashMap;

import java.util.LinkedList;

public class Driver {

public static void main(String[] args) {

// Some homophonic words are:

/*

* ate, eight

* bare, bear

* buy, by, bye

* eye, I

*

*/

// Creating Hashmap

HashMap<String, String[]> homo = new HashMap<String, String[]>();

homo.put("ate", new String[] { "ate", "eight" });

homo.put("bare", new String[] { "bare", "beare" });

homo.put("buy", new String[] { "buy", "bye", "by" });

homo.put("eye", new String[] { "eye", "I" });

for (String i : homo.keySet()) {

int count=homo.get(i).length;

System.out.println(i+" has "+count+" homophone words");

}

}

}

You might be interested in
the perimeter of an equilateral triangle is 63 inches. if the length of each side is (4x-3), find the value of x
Ber [7]
Use the equation 4x-3=63
4 0
3 years ago
The choices are:
Harrizon [31]
Let's take a look at D:   

<span>D)    y = (x-1)^2 - 16     Compare this to 
        y = (x-h)^2 + k       This is the std. equation of a parabola in vertex form.

You can see, by comparison, that h=1 and k= -16; these are the coordinates of the vertex, clearly shown in the diagram.

Since the coefficient of (x-h)^2 is +1, the graph opens upward (which the given graph confirms), and is neither compressed nor stretched vertically.</span>
7 0
3 years ago
Plz awnser because Aleks is dumb
Black_prince [1.1K]
Since you know it's a square, you also know that all the sides are 3 2/3. So to find area you multiply, so 3 2/3 x 3 2/3. An easy way to do this is convert it to a mixed number (11/3) and then multiply: 
11/3 x 11/3 = 121/9
8 0
3 years ago
Question Down below.
expeople1 [14]

Answer:

there equal

Step-by-step explanation:

the absolute value of 3 is 3

and the absolute value of -3 is 3

hope this helps

let me know if you need help with anymore

Have a great day!

8 0
3 years ago
A pen is being built that is 10 feet long and 20 feet wide. How much fencing material will be needed?
mr_godi [17]
Perimeter = 2(10+20) = 60feet

60ft fencing material is needed
7 0
3 years ago
Read 2 more answers
Other questions:
  • If you can help thank you in advance!
    6·1 answer
  • What is the measure of each base angle on an isosceles triangle it it's vertex angle measures 28 degrees and it's 2 congruent si
    14·1 answer
  • What is next number and why
    11·1 answer
  • I need help please and thank you
    7·1 answer
  • Bill makes four payments a year of $128.25 for life insurance; four payments of $161.82 for real estate taxes; twenty-four payme
    13·1 answer
  • Numbers between 1 and 100 that are multiple of 3 but not multiple of 8
    8·1 answer
  • Solve the equation. 4(x + 5) - 4 = 4
    11·2 answers
  • 2=<img src="https://tex.z-dn.net/?f=%5Cfrac%7Bu-12%7D%7B3%7D" id="TexFormula1" title="\frac{u-12}{3}" alt="\frac{u-12}{3}" align
    14·2 answers
  • What is the total cost of three shirts 22.50 and two ties 14.90 with a 5% sales tax
    5·2 answers
  • I will mark brainlyist
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!