ShmoopTube
Where Monty Python meets your 10th grade teacher.
Search Thousands of Shmoop Videos
AP Computer Science A Videos 108 videos
AP Computer Science: Classes and Objects Drill 3, Problem 5. Which of the following is not an object?
AP Computer Science: Classes and Objects Drill 3, Problem 4. Which of the following are objects?
AP Computer Science 4.1 Classes and Objects. Which of the answers is the best definition of a postcondition?
AP Computer Science 1.5 Program Development 204 Views
Share It!
Description:
AP Computer Science 1.5 Program Development. Utilize functional decomposition to write a function.
Transcript
- 00:00
Thank you We sneak and here's your shmoop too sure
- 00:05
brought to you by tutsi pops They're basically the inception
- 00:09
of candy right How many licks does it take to
- 00:12
get to the center of a tootsie pop We don't
- 00:14
know but you'll find out for us We're tasking you
Full Transcript
- 00:17
with writing a function that goes through the process of
- 00:20
determining how many licks it takes to get to the
- 00:22
center of the tootsie pop To complete this complicated process
- 00:25
you'll need to utilize functional decomposition you know Yeah Functional
- 00:30
decomposition is the process of breaking one complicated task in
- 00:34
the multiple simpler tasks this way code is easier to
- 00:37
read and if something goes wrong we can isolate the
- 00:40
problem new specific method Your answer must break down the
- 00:43
task in hand into simple tasks Choice a starts to
- 00:47
do this but i don't think that's what's supposed to
- 00:49
happen No joyce beat as a maker task any simpler
- 00:53
In fact it just restated our task in a different
- 00:56
way She looks variable Our task is broken down into
- 00:59
manageable tasks are fourth option looks like choice See except
- 01:03
for the fact that it never checks if we were
- 01:05
done with the lollipop go on forever Our last option
- 01:08
though ingenious and would be the better way of achieving
- 01:11
our task It does not utilize functional decomposition so this
- 01:15
makes our answer See next time i'll show you the 00:01:19.115 --> [endTime] correct way The lichen titty pop
Related Videos
AP Computer Science 1.2 GridWorld Case Study and APIs. What is the direction of the actor?
AP Computer Science 1.4 Standard Algorithms. How many times will mystery be called for mystery(n) for n > 1?
AP Computer Science 2.3 Classes and Objects. Which of the following is correct implementation of the Country class?
AP Computer Science 3.4 Inheritance, Abstraction, and Polymorphism. Which of the following will satisfy the conditional if statement for boo, str,...
AP Computer Science 4.2 Standard Algorithms. What kind of algorithm is the following?