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
Kay [80]
3 years ago
14

SOMEONE PLEASE HELPS ME HOW TO FIND THIS PLEASEEE #5

Mathematics
1 answer:
Paraphin [41]3 years ago
8 0
The angle for a straight line is 180 degrees. So, to find x, you must subtract the angle given from the angle from the straight line to get 180-151=29 degrees.
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
3 years ago
Read 2 more answers
What is a graph of a quadratic equation called
Mazyrski [523]

Answer:

Probably a parabola

Step-by-step explanation:


6 0
3 years ago
Read 2 more answers
A construction worker fills a mold with concrete. This solid figure represents the mold.
allochka39001 [22]

Answer:

6580cm

Step-by-step explanation:

The answer is 6580cm because....

  • Step one First let's figure out what the smaller shape's volume is. To do so we need to multiply ( LxWxH ) so 6x5x? it does not list what the height is so we know it has the same height as the larger shape and it's height is 14cm so we will use 14cm. 6x5x14=420cm
  • Step two Now lets find the Volume of the larger shape. So lets do LxWxH so Lx?x14 it does not give us the length so we need to add up all of the numbers along the line. We got 7cm then 5 from the bottom of the smaller shape and 10cm. all ads up to 22cm so 20x22x14=6160
  • Finally we add up the following shapes Volume which are 6160+420=6580cm
3 0
3 years ago
A real estate company owns 120 apartments which are fully occupied when the rent is $800 per month. Analytics indicate that for
UNO [17]

9514 1404 393

Answer:

  $880

Step-by-step explanation:

If r is the rent charged, then the number of $40 increments of increase will be ...

  (r -800)/40

and the number of occupied apartments will be ...

  120 -5(r -800)/40

The gross income (g) will be the number of apartments times the rent charged, or ...

  g = r×(120 -5(r -800)/40) = (1/8)r(1760 -r)

The equation describes a parabola with zeros at r=0 and r=1760. The vertex will be on the line of symmetry, halfway between those zeros. The maximum gross income will be had when the rent is 1760/2 = 880.

$880 should be charged for rent to maximize gross income.

5 0
3 years ago
Need help with type of function
Neko [114]

Answer:

a

Step-by-step explanation:

3 0
3 years ago
Other questions:
  • Peter is making an "X marks the spot" flag for a treasure hunt. The flag is made of a square white flag with sides of 12 inches.
    14·1 answer
  • A and B are vertical angles. If m A = (5.x - 2)° and m<br> B = (3r + 12), then find the value of x
    12·2 answers
  • Mary sells lemonade, and she donates 10 cents from every cup she sells to charity. The cups of lemonade sell for 45 cents. One d
    14·2 answers
  • Nine students volunteer for a committee. How many different seven Dash people committees can be chosen? A 181.400 b 362,880 c 1
    15·1 answer
  • A prism is completely filled with 576 cubes that have edge length of 1/4 in.
    7·2 answers
  • Let a be a rational number and b be an irrational number. Which of the following statements are true?
    15·1 answer
  • To rent a certain meeting room, a college charges a reservation fee of $ 46 and an additional fee of $ 6.40 per hour. The chemis
    8·1 answer
  • PLEASE ANSWER ASAP FOR BRANLEST!!!!!!!!!!!!!!!<br> Solve the equation<br> 9 = -8s - 7<br> what is s?
    12·1 answer
  • CAN SOMEONE GOOD AT MATH HELP PLEEESE!!
    13·1 answer
  • How to find constant of proportionality
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!