1/14
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
Describe step-by-step what this program does.
Functionality
Identify an expected user of your program. Describe one way your program's design meets the needs of this user.
Purpose
Consider the procedure identified in part (i) of the Procedure section of your Personalized Project Reference. Write a call to your procedure with specific argument(s) that you could use for testing this procedure. Describe the program functionality that is related to this call.
countNumsGreaterThan(500)
This procedure call uses 500 as the target value. This will cause the program to identify how many numbers in the list are greater than 500 and allow me to see if my procedure works. When the target number is 500, none of the numbers in the list are greater, so the output will be "Sorry none of your grades meet your target value".
Consider the list identified in the List section of your Personalized Project Reference. Explain how you would need to adjust this part of your program if the list was not included in your code.
I would have to create an individual variable for each number in my list. Instead of looping through the list, I would have to create an if-statement for each number that I want to check to see if it is higher than my target number.
Write an equivalent expression to the condition in the if-statement used in the above program.
Original: num > targetValue
New: NOT(num <= targetValue)
Consider the first iteration statement included in the Procedure section of your Personalized Project Reference. Identify the number of times the body of your iteration statement will execute. Describe a condition or error that would cause your iteration statement to not terminate and cause an infinite loop. If no such condition or error exists, explain how the loop could be modified to cause an infinite loop.
If I changed my loop so that everytime it ran, a new number was appended to the list, then the loop would be infinite. Because it is a for each loop, it will just keep going.
How does the use of a list show abstraction?
The response concisely explains how the algorithm in the procedure works with enough detail that it can be recreated.
Describe the testing and debugging process
What are the inputs and outputs of your program?
How does the list manage complexity?
What does your procedure do to contribute to the overall functionality of your program?
Describe in enough detail what your procedure does that a person would be able to re-create it
What would have to change in your program without your list?
What day is contained in your list?