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
djyliett [7]
3 years ago
12

Whole numbers greater than 10 but less than 15​

Mathematics
2 answers:
Scorpion4ik [409]3 years ago
7 0

Answer: some answers are 11, 12, 13, and 14. I hope you found this helpful:)

Liono4ka [1.6K]3 years ago
3 0

A whole number greater then 10 but less then 15 would be 12

You might be interested in
The fundamental source of the inefficiency is not the fact that recursive calls are being made, but that values are being recomp
Fudgin [204]

Step-by-step explanation:

<em>(you can download the attached PDF for a better view)</em>

The Fibonacci sequence is a well-known mathematical sequence in which each term is the sum of the two previous terms.

More specifically, if fib(n) is the nth term of the sequence, then the sequence can be defined as follows:

fib(0) = 0

fib(1) = 1

fib(n) = fib(n-1) + fib(n-2) n>1

1. Because the Fibonacci sequence is defined recursively, it is natural to write a recursive method to determine the nth

number in the sequence. File Fib.java contains the skeleton for a class containing a method to compute Fibonacci

numbers. Save this file to your directory. Following the specification above, fill in the code for method fib1 so that it

recursively computes and returns the nth number in the sequence.

2. File TestFib.java contains a simple driver that asks the user for an integer and uses the fib1 method to compute that

element in the Fibonacci sequence. Save this file to your directory and use it to test your fib1 method. First try small

integers, then larger ones. You'll notice that the number doesn't have to get very big before the calculation takes a very

long time. The problem is that the fib1 method is making lots and lots of recursive calls. To see this, add a print

statement at the beginning of your fib1 method that indicates what call is being computed, e.g., "In fib1(3)" if the

parameter is 3. Now run TestFib again and enter 5—you should get a number of messages from your print statement.

Examine these messages and figure out the sequence of calls that generated them. (This is easiest if you first draw the

call tree on paper.) . Since fib(5) is fib(4) + fib(3),you should not be surprised to find calls to fib(4) and fib(3) in the

printout. But why are there two calls to fib(3)? Because both fib(4) and fib(5) need fib(3), so they both compute it—very

inefficient. Run the program again with a slightly larger number and again note the repetition in the calls.

3. The fundamental source of the inefficiency is not the fact that recursive calls are being made, but that values are being

recomputed. One way around this is to compute the values from the beginning of the sequence instead of from the end,

saving them in an array as you go. Although this could be done recursively, it is more natural to do it iteratively. Proceed

as follows:

a. Add a method fib2 to your Fib class. Like fib1, fib2 should be static and should take an integer and return an integer.

b. Inside fib2, create an array of integers the size of the value passed in.

c. Initialize the first two elements of the array to 0 and 1, corresponding to the first two elements of the Fibonacci

sequence. Then loop through the integers up to the value passed in, computing each element of the array as the sum

of the two previous elements. When the array is full, its last element is the element requested. Return this value.

d. Modify your TestFib class so that it calls fib2 (first) and prints the result, then calls fib1 and prints that result. You

should get the same answers, but very different computation times.

// ******************************************************************

// Fib.java

//

// A utility class that provide methods to compute elements of the

// Fibonacci sequence.

// ******************************************************************

public class Fib

{

//--------------------------------------------------------------

// Recursively computes fib(n)

//--------------------------------------------------------------

public static int fib1(int n)

{

//Fill in code -- this should look very much like the

//mathematical specification

}

// ******************************************************************

// TestFib.java

//

// A simple driver that uses the Fib class to compute the

// nth element of the Fibonacci sequence.

// ******************************************************************

import java.util.Scanner;

public class TestFib

{

public static void main(String[] args)

{

int n, fib;

Scanner scan = new Scanner(System.in);

System.out.print("Enter an integer: ");

n = scan.nextInt();

fib = Fib.fib1(n);

System.out.println("Fib(" + n + ") is " + fib);

}

}

Download pdf
8 0
4 years ago
Read 2 more answers
The top of a rectangular table has an area of 18x^2 + 69 + 60. The width of the table is 3x + 4 . What is the length of the tabl
gladu [14]
Area = 18x^2 + 69x + 60
Width = 3x + 4
Length = (18x^2 + 69x + 60) ÷ (3x + 4)
Length = 3(3x + 4)(2x + 5) ÷ (3x + 4)
Length =  3(2x+5)
5 0
4 years ago
Read 2 more answers
The diagram below is a scale drawing of a former's vegetable garden, where the length is 12 inches and the width is inches. The
padilas [110]
Shouldn’t there show the diagram - unless i have to draw one , unless there’s 1 side with the length of 12
6 0
3 years ago
U=F(r+B) solve for r
irina1246 [14]
<h2>The value of r = \dfrac{U-FB}{F}</h2>

Step-by-step explanation:

We have,

U = F(r + B)

To find, the value of r = ?

∴ U = F(r + B)

Dividing both sides by F, we get

\dfrac{U }{F}=\dfrac{F(r+B) }{F}

⇒ \dfrac{U }{F} = r + B

⇒ r + B = \dfrac{U }{F}

⇒ r =  \dfrac{U }{F} - B

⇒ r = \dfrac{U-FB}{F}

∴ The value of r =\dfrac{U-FB}{F}

3 0
3 years ago
How many rice balls can Justin make with 700700700 grams of rice?
user100 [1]

Answer:

im pretty sure its 777 hope this helped:)

4 0
3 years ago
Other questions:
  • Which expression is equivalent to sin^2x-sin x-2/sin x-2
    5·1 answer
  • Which of the following statements contain a variable? Check all that apply.
    6·2 answers
  • Which expressions are equivalent to 3 1/4 - (-5/8)
    7·1 answer
  • PLEASE HELP!!
    8·1 answer
  • Find the simple interest earned to the nearest cent for each principal, interest rate, and time.
    10·1 answer
  • How many 1/4 cup servings are in 2 1/2 cups of yogurt?
    15·2 answers
  • 1 3/8 minus 8/9 in simplest form
    15·1 answer
  • A square has side length (2x+3)in. What is the area of the square
    6·1 answer
  • What factors do the numbers 18 and 30 have in common?
    5·1 answer
  • Prove that 41 is congruent to 21 (mod 3). Explain using words, symbols, as you wish
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!