Post University Math and Programming Questions Discussion

User Generated

yhoh1

Programming

Post University

Description

When responding to classmates, include additional information for why you agree with their position or information explaining why you do not agree with their position.

Make sure to provide cited information to support your position. All work must be in APA format.

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

Hey dude, how've you been?Just done with another work of yours 😊, Thanks for trusting me 😇. As always, you're welcome to ask for any assistance if needed. 😇

Responding to classmates

First Name Last Name
Department Name, Post University
Course Number: Course Name
Instructor’s Name
Due Date for Assignment

1. Recursion is when you break down a problem into smaller tasks to solve the overall
(bigger) problem" (Farrell, 2018). An example of recursion in mathematical terms
would be to solve fifty plus fifty. First, you would divide fifty in half, which is twentyfive, and then add twenty-five-plus twenty-five which equals fifty. You would repeat the
equation again since you originally divided fifty in half. Next, you would divide twentyfive in half, which would be twelve and a half, and add twelve and a half plus twelve and
a half which equals twenty-five. Repeat the equation for the other half of the number,
and then add twelve and a half plus twelve and a half which equals twenty-five. Next,
you would repeat the equation again for the original half of the equation. Now you have
the answer of fifty for the first half and the answer of fifty for the second half. Fifty plus
fifty is one hundred.
The given can be case to solve certain task, however, talking about recursion, it is name of
breaking down a problem in smaller parts (Spark Notes), which means to repeat tasks without
using struct provided by the programming languages in the form of loops. Moreover, it makes
program look more professional, whereas, using loops simply is not something done out of
the box.

2. One simple example of a practical use of recursion, is for factorials. Recursion is
another way to simplify tasks by encapsulation. 5! simplified is 5*4*3*2*1 and equals
120 (mycodeschool, 2012). You can use r...


Anonymous
Awesome! Made my life easier.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags