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
Which expression is equivalent? Please see pictures attached!
VMariaS [17]

hey, u didn’t rlly attach anything :/

5 0
3 years ago
What is the 1st quartile in the data set 65 90 100 72 88 55 73
dem82 [27]
Im pretty sure the answer is 65
7 0
3 years ago
One parent is a cystic fibrosis carrier, and the other has
Marysya12 [62]

Answer:

A - 0%

B- 50%

C- 50%

D- 100%

Step-by-step explanation:

Cystic fibrosis is inherited in an autosomal recessive form, meaning that a person has to inherit two abnormal genes for the disease to manifest. In the case of this question, one parent is a gene carrier, so his genotype is Aa, while the other does not have the cystic fibrosis gene, so AA.

Performing the cross of Aa x AA, we can see that:

a.) The probability of a child would have cystic fibrosis is 0%, since the disease is recessive and to be affected it should receive a recessive gene from each parent.

b.) The probability of a child would be a carrier is 50%, as 50% of the crossing phenotypes are Aa.

c.) The probability of a child would not have cystic fibrosis and is not a carrier is 50%, as 50% of the child's genotype is AA.

d.) The probability of a child would be healthy is 100%, as of all possible phenotypes none is affected.

5 0
3 years ago
Simplify the expression. . 1 V 3.0 2​
Vlad [161]

Answer:

81x^4/16  (81x to the fourth over 16)

Step-by-step explanation:

First you apply the exponent rule: (a/b)^c  ->  a^c/b^c

So it looks like this: 3x^2/4^2

Then you apply the exponent to the whole thing, and 3^4 is 81, x^4 stays like that, and 2^4 is 16

You can't simplify any more after that so that's your answer

Hope this helps!

5 0
3 years ago
Identify the initial amount a and the growth factor b in the exponential function. f(x) = 620 • 7.8x
jenyasd209 [6]

Answer:

Initial amount (a)= 620

Growth factor (b)= 7.8

Step-by-step explanation:

620 is the initial amount and is multiplied by 7.8 x which is the growth factor.

7 0
3 years ago
Other questions:
  • What measure of central tendency is least representative of the data set known?
    12·1 answer
  •      Brandon is 6 times as old as Cora. In 4 years, Brandon will be only twice as old as
    7·1 answer
  • (2xy) to the power of 3
    13·1 answer
  • I can't get it can anyone help me I get most of it I just need number 1...
    13·2 answers
  • Write an equation for the description.<br><br> Two-thirds a number x plus 5 is 8.
    6·2 answers
  • Find the difference. Check your answer by adding.<br><br> 652,203 - 62,285
    6·1 answer
  • Which is the correct slope-intercept equation for a line that passes through the points (1,-3) and (-3,17)
    8·1 answer
  • Latrell has $8 to spend on postcards. He wants to buy one large postcard and some small ones. Write an inequality to determine h
    15·1 answer
  • What is the binary number for 12​
    15·1 answer
  • Find The Square Root Of<br><img src="https://tex.z-dn.net/?f=%20%5Cfrac%7B144%7D%7B169%20%7D%20" id="TexFormula1" title=" \frac{
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!