Determine the value for the following recursive method when x = 19.

Determine The Value For The Following Recursive Method When X = 19.

Answers

Answer 1

Answer:

[tex]f(19) = 2[/tex]

Explanation:

Given

[tex]f(x) = f(x - 5)+ 2[/tex] --- [tex]x > 9[/tex]

[tex]f(x) = -2[/tex] --- [tex]x \le 9[/tex]

Required

Find f(19)

f(19) implies that: x = 19

Since 19 > 9, we make use of:

[tex]f(x) = f(x - 5)+ 2[/tex]

[tex]f(19) = f(19 - 5) + 2[/tex]

[tex]f(19) = f(14) + 2[/tex] ----- (1)

Calculate f(14)

f(14) implies that: x = 14

Since 14 > 9, we make use of:

[tex]f(x) = f(x - 5)+ 2[/tex]

[tex]f(14) = f(14 - 5) + 2[/tex]

[tex]f(14) = f(9) + 2[/tex] ------ (2)

Calculate f(9)

f(9) implies that: x = 14

Since [tex]9 \le 9[/tex], we make use of:

[tex]f(x) = -2[/tex]

[tex]f(9) = -2[/tex]

So:

[tex]f(14) = f(9) + 2[/tex]

[tex]f(14) = -2 + 2[/tex]

[tex]f(14) = 0[/tex]

[tex]f(19) = f(14) + 2[/tex]

[tex]f(19) = 0 + 2[/tex]

[tex]f(19) = 2[/tex]


Related Questions

Question 3 5 points)
Which one is NOT a factor that impact the total cost of a tool or piece of equipment.

Answers

where are the choices?

Read the following examples, and decide whether each example describes a relational database or a flat
file. Use the drop-down menus to make your selection.
An author keeps track of income and expenses in a table:
A college admissions department stores detailed information about each applicant, including his or her
full name, address, high school, GPA, standardized test scores, intended major, and entrance exam
scores:
A social media website has many users who are allowed to upload photos, videos, and information about
themselves:
A library stores information about patron names, account numbers, books out on loan, the date books are
due, the date books are returned, the number of days a book is overdue, and overdue book fines; this
information allows the system to e-mail or call patrons to remind them to return books on time:

Answers

Answer: flat file, relational database, relational database, relational database

Explanation:

Edge

Answer:

1. flat file

2. relational detabase

3. relational detabase

4. relational detabase

Explanation:

on edg

Program C++ I need help!

Answers

Answer:#include <iostream>

using namespace std;

int main()

{

   int factorial = 1;

   for (int i = 5; i > 0; i--) {

       factorial = factorial * i;

   }

   cout<<factorial;

   return 0;

}

Explanation:

Which of the following does Secure Sockets Layer (SSL) use to authenticate a user or system before encrypting a session?
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform this task are A to H and alt+1 to alt+9.
A

A digital certificate
B

A certificate authority
C

An Electronic Funds Transfer (EFT)
D

A payment gateway

Answers

Answer:

B is more probable option than C

Explanation:

I think its both B and C

A certificate authority does Secure Sockets Layer (SSL) used to authenticate a user or system before encrypting a session. Hence, option B is correct.

What is Secure Sockets Layer (SSL)?

Secure Sockets Layer (SSL) is a security protocol used to establish an encrypted link between a web server and a web browser. It was replaced by Transport Layer Security (TLS) as the standard protocol, but the term "SSL" is still commonly used to refer to both SSL and TLS.

When a user enters a website using SSL/TLS, the website's server sends a public key to the user's browser. The browser then uses this public key to encrypt data that is sent back to the server.

This helps to prevent third parties from intercepting and reading the data being transmitted.

Thus, option B is correct.

To learn more about the Secure Sockets Layer (SSL), follow the link:

https://brainly.com/question/25401676

#SPJ2

nog
*
24. QUESTION 21:
Peacekeeper text is non-printing text that indicates where you can type.
(2.5 Points)
True
False

Answers

Answer: False

Explanation:

The statement that "Peacekeeper text is non-printing text that indicates where you can type" is false.

The non-printing text which shows where on exam type is referred to as the peaceholder text. It is usually an hint which can be used to fill in the actual text.

Which type of data is shown below?
apple, 0.85
banana, 0.90
peach, 1.50

Answers

Answer:

dictionary data

Explanation:

data = {"apple" : 0.85, "banana" : 0.90, "peach": 1.50}

Other Questions
Rewrite the following sentence to use an original absolute phrase. All work must be your own. Use proper spelling and grammar.He wanted a car can anyone go answer my English questions? i just put them up I really need with them thanks so much if you do help me What were Spanish landowners expected to do for indigenous peoples under the encomienda system?protect them, educate them, and convert them to Christianitygive them shelter and enslaved persons, and pay them moneyprovide them with their own landshow them a path to freedom A complex electronic system is built with a certain number of backup components in its subsystems. One subsystem has four identical components, each with a probability of 0.2 of failing in less than 1000 hours. The subsystem will operate if any two of the four components are operating. Assume that the components act independently.a) Find the probability that exactly two of the four components last longer than 1000 hours.b) Find the probability that the subsystem operates longer than 1000 hours. Ann had $120 to spend on books. After buying 10 books she had $8.30 left. If each book costs the same, let b be the cost of each book Write an algebraic equation that represents the situation: I will give brainliest to the best example so I am writing some essay and stuff ya know and could you an example that happend to you to show why is it important to improve your reading skills. I really need help- I am really confused-The year is 1816 and you are a teenager living in St. Martinville, Louisiana. Though you left school at the age of twelve, you are the first in your family to learn how to read and write. Your mother has come to you with a task. Your great-grandfather, Jacques DuBois, is in poor health. At 80, he does not have long to live. He is the oldest member of your farming community and is the last to remember the first arrival of the Acadians in Louisiana from Grand-Pr, Nova Scotia in 1765. Your mother has asked you to write his story for the family records. He has been reluctant to tell of his hardships over the years, but he has agreed to speak with you over the next few weeks. Your assignment has five parts. You will write all of it in first person in the voice of your character. Each entry will be about 150-200 words. journal from Part I: Explain who you are, where you live and what you do. Although you live in a Cajun community and speak French at home, you are a third-generation American who has never left Louisiana. Explain briefly the task that you have agreed to and how you will carry it out. Part II: Tell the story of your great-grandfather's life in Grand-Pr during the Acadian Golden Age. Part III: Tell the story of why he left Nova Scotia and how he ended up in Louisiana.Part IV: Explain what it was like for him to settle in St. Martinville and describe the difficulties he faced. Part V: Reflect on how you have felt about the process of speaking to your great-grandfather and writing down his story. Has this experience changed how you feel about yourself as a Cajun? If so, how?You may need to do some research here. You can start with this site, which gives the background on Grand-Pr. Keep track of any sources that you use and include them in your report. FormatYou have a few choices here. You can use any of the following:hand-written journal (you may have to scan this)typed document which should look like it came from 1815audio recordingoral report - discuss with your teacher the possibility of reading the report aloud from a set of notecardsMarks If you choose an oral report, you will be marked out of four for fluency, pronunciation and intonation, rather than mechanics and grammar. B. Directions: Read the following sentences and then apply structural paraphrasing in processing your work.1. In real life, most people disapprove of individuals who make mistakes or fail at important duties. People often put these kinds of standards on government officials, teachers, friends, and even parents.2. Game software, despite having a more limited market, has more customers. When a new game is produced and people find it interesting, they will usually but it.B. Directions: Read the following sentences and then apply structural paraphrasing in processing your work. very urgent can someone please solve thank you marcia is typing her report for history class. She can type 4 pages in 45 minutes. At that rate, how many pages does she type per hour? Round to the nearest hundredth. On a particular flight, the airline's income was $95,280 for a jumbo jet carrying 290 passengers. If a first-class ticket costs $680 and a coach ticket costs $288, how many of each ticket were sold for the flight? Plz answer I need a lot of help as soon as possible. will give brianlistJennifer has a hair ribbon that is 12 centimeters long. What is the length of the ribbon in millimeters? Use the number of zeros of the product when multiplying a number by a power of 10 to help you. 120 millimeters 12 millimeters 1,200 millimeters 1.2 millimeters which number line represents the solution to the inequality (will make brainliest) pls help Solve for r 4/r 5/7 When pertaining to businesses, such as factories,what is meant by workers striking? Are strikes good? Explain why? Arestrikes bad? Explain why? heat can be produced by - two things What is someone stealing at the start of "The Adventure of the Six Napoleons"?cheap busts of Napoleonmedals once owned by Napoleonrare novels about Napoleonpricey paintings of Napoleon Yall have helped a lot i just need help on this then ill be done for a whileWrite a discussion post that contains the following:Information about the magnetic field from the three websites you used.What each author believes about the magnetic field.What you believe about the magnetic field.Citations for your three websites. Whats the additive inverse of -7x + 3 ?? ! please help its due at 11:59 and I have waaay more !