AP Computer Science 4.3 Program Development
Recommendation
Want a study guide too?
AP Computer Science 4.3 Program Development. Which of the following methods would be part of an effective implementation?
AP | AP Computer Science |
AP Computer Science | Program Development |
Computer Science | AP Computer Science |
Language | English Language |
Program Implementation | Implementation techniques |
Test Prep | AP Computer Science |
Transcript
be rewritten with procedural abstraction Which of the following methods
would be part of an effective implement patient I hear
it's code public static Get some all right in here
Your potential answers Ambrose wait I recall that procedural abstraction
is the process of breaking down a program into smaller
building blocks that can be implemented A separate methods for
these three options are smaller pieces of the main program
So none are totally incorrect It's like being assigned a
big chore by your parents but not wanting to do
the work You assigned smaller past your little siblings It's
jordan Then we've all been there All right if we
look at the original program closer there are three processes
generating the scores summing the scores and printing the average
Well Ideally we should split these three tasks into separate
methods and then call them from the main function Well
option one fulfills the first process of generating scores It's
a correctly implemented piece of the program Option two fulfills
the process of summing the scores So it's also a
correct implementation However option three is not an ideal implementation
of procedural extraction Notice that it uses a four loop
to get the sum of the scores Also noticed that
this is the same exact code is an option to
the method could have made a call to get some
method saving lines of code And following the guide of
procedural in traction for this league's asked choice dsr answer
And next time we'll look into the uprising of the 00:01:59.804 --> [endTime] ship