Homework on Functions - Questions

  1. A function is fixed set of operations that can take some input and gives an output based on the result of those operations when run on that input.

a) 4
b) 17
c) 0

f(x) = {
(x/4)-5
}

1 Like

1. Describe what a function does in your own words
It’s a computation of an input which results in a specific output.

2. Calculate the output of the following function

  • a) f(2) = 4
  • b) f(7) = 17
  • c) f(0) = 0

3. Write the definition of a function f that takes an input x, divides it by four and then outputs that result subtracted by 5.
f(x) = (x/4) - 5

1 Like
  1. Describe what a function does in your own words

a Function is the computational work to be done in order to receive an output from an input.

  1. Calculate the output of the following function
f(x) = {

x^2 if x is even

x+10 if x is odd

}

What will be the output for the following inputs?

  • a) f(2) 4
  • b) f(7) 17
  • c) f(0) 0
  1. Write the definition of a function f that takes an input x, divides it by four and then outputs that result subtracted by 5.

f(x) = (x / 4) - 5

1 Like
  1. Describe what a function does in your own words
    A function is a predetermined process. You feed it information and it will change those information according to the rules set out by the programmer.
  2. Calculate the output of the following function
    f(x) = {
    x^2 if x is even
    x+10 if x is odd
    }
    What will be the output for the following inputs?
    • a) f(2) - 4
    • b) f(7) - 17
    • c) f(0) - 0
  3. Write the definition of a function f that takes an input x, divides it by four and then outputs that result subtracted by 5.
    f(x) = {x/4-5}
1 Like

1, What is the hashing algorithm called used in Bitcoin?

The hash algorithm used for Bitcoin is SHA-256. This algorithm produces verifiably random numbers in a predictable amount of computer processing power.

2. Why is this hashing algorithm really hard (almost impossible) to brute-force?

Because of the number of potential variations, it is difficult or impractical to reverse the function’s output to obtain the input.

1 Like

1.). It gives us the instructions and limits of an operation.

2.) F(2) = 2 ^ 2 = 4

 F(7) = 7 +10 = 17

  F(0) = 0 ^ 2 = 0

3.). F(x) = (x/4) - 5

1 Like
  1. a function is the sum of input and output
  2. a) 4
    b)17
    c)0
  3. f(x) = (x/4)-5
1 Like

Your answers are right but you posted your homework in the wrong thread.

  1. Describe what a function does in your own words
    Solves for variable(s)
  2. Calculate the output of the following function
f(x) = {

x^2 if x is even

x+10 if x is odd

}

What will be the output for the following inputs?

  • a) f(2) = 4
  • b) f(7) = 17
  • c) f(0) = 0
  1. Write the definition of a function f that takes an input x, divides it by four and then outputs that result subtracted by 5. f(x) = x/4 - 5
1 Like
  1. A function is a block of code that runs when its wanted. You can pass data into a function and a function can return the data aswell.

A. 4
B. 17
C. 0

  1. f(x)=(x/4)-5
1 Like

1)A function is a computation that has an input and an output

A)4
B) 17
C) 0

  1. f(x)= (x/4)-5
1 Like

okay thank you Maki i will repost it in the right one

1. Describe what a function does in your own words

A function is a type of computation that takes an input and produces an output.

2. Calculate the output of the following function.

a) f(2) f(2)= x^2=4

b) f(7) f(7)= x+10=17

c) f(0) f(2)= 0^2=0

3. Write the definition of a function f that takes an input x, divides it by four and then outputs that result subtracted by 5.

F(x)=x/4-5

1 Like
  1. Describe what a function does in your own words
    A function describes the relationship between an input and an output

  2. Calculate the output of the following function

  • a) f(2) = 4
  • b) f(7) = 17
  • c) f(0) = 0
  1. Write the definition of a function f that takes an input x, divides it by four and then outputs that result subtracted by 5.

f(x) = x/4 - 5

1 Like
  1. Describe what a function does in your own words
    A function is a instruction or set of instructions which will act upon value that is input to the function and in order to produce an output value.
  2. Calculate the output of the following function
f(x) = {

x^2 if x is even

x+10 if x is odd

}

What will be the output for the following inputs?

  • a) f(2) = 4
  • b) f(7) = 17
  • c) f(0) = 0
  1. Write the definition of a function f that takes an input x, divides it by four and then outputs that result subtracted by 5.
    f(x) = {(x/4) - 5}
1 Like
  1. A function is a computation, a set of mathematical operations that can be applied to any input.

  2. a) 4
    b) 17
    c) 0

  3. f(x) = x/4-5

1 Like
  1. Describe what a function does in your own words.

A function is a mathematical computation where one enters an input and gets an output.

2.Calculate the output of the following function: f(x)

a) f(2) = 4
b) f(7) = 17
c) f(0) = 0

  1. Write the definition of a function f that takes an input x, divides it by four and then outputs that result subtracted by 5.

f(x/4) = x - 5

1 Like

A function is a computation - relates an input to an output.
a) 4
b) 17
c) 0
f(x) = {
(x/4)-5
}

1 Like
  1. A function is a mathematical description of the relationship between input and output.
  2.   a) f(2) = 4
      b) f(7) = 17
      c) f(0) = 0
    
  3. f(x) = (x/4)-5
1 Like
  1. a function is a mathematical equation with X as variable in which if you give an input it gives you an output.
  2. a.4
    b. 17
    c.0
  3. F(X/4)-5
1 Like