Edited Invalid date
Chapter 13: Written Response to Prompt 2c: Showing and Explaining an Algorithm
Allow about an hour to show and explain the code you used to respond to Prompt 2c.
Prompt 2c asks you to show and explain a piece of your code.
You have 200 words to say.
The focus of this prompt is the program you wrote.
The program's purpose should be connected to the program's key feature.
Think about your intended goal or the main objective of your program, then make sure the program you choose is related to this.
The program's purpose should be the reason for choosing an algorithm.
Capture and paste the code segment.
The purpose of your program is connected to the algorithm.
The person who wrote this is you.
At least two other programs are called.
It is a good candidate for this prompt because of the complexity of the algorithm.
If the order of your lines of code made a difference, you needed to sequence them.
If a decision needed to be made before continuing on in the program, you needed selection.
If you want to add more complexity to your program, you can use selection to control values.
If you needed to do something repeatedly, iteration is your code's requirement.
It could have been that you needed to repeat behavior until a number was reached or that you needed to access all elements in a collection.
For this prompt, you should write about a complex algorithm.
In this prompt, you plan to highlight a particular algorithm.
The person who wrote the code needs to be you.
It is important to your program.
It should be called by another part of the program.
There must be at least two other algorithms that include math or logic.
Random numbers, inequalities, formulas, reasoning are included in math.
You can use logic in your code if you show it.
You can reorganize or enhance your code by looking at it.
Ask people to look at your code.
Consider adding more features to your program.
Prepare your program to be highlighted.
You can use your preferred tool to make an image.
The main algorithm calls the two that are included.
If they add clarity to your algorithm, add it.
You can open your template.
Under prompt 2c, follow directions to copy and paste your code.
The variables that it calls are related to the program.
Suppose you have a variable with a timer.
When answering a written prompt, maximize your score by making it easy for your grader to find your response.
Start your response with: "The first algorithm called by my algorithm is a for loop."
The first attribute that they are looking for in your response is related to these words.
Write a response to Prompt 2c.
You need to explain how the algorithm works, not just what it does.
Line-by-line explanations of your code should not be included in these explanations.
Explain how the key parts of your program are related to each other and the overall purpose of the program.
When you read your final written response to Prompt 2c, make sure you answer "yes" to all of the questions.
You should revise your response to maximize your score.
The questions graders will ask themselves when they read your response will determine if you should get credit for it.
Review flashcards and saved quizzes
Getting your flashcards
Privacy & Terms