Create—Applications from Ideas: Sample Response C

Print this page
beginning of content:

Note: For information about the points this response earned, please see the Create Commentary (.pdf/66.6KB).

1. Video

Submit one video in .mp4, .wmv, .avi, or .mov format that demonstrates the running of at least one significant feature of your program. Your video must not exceed 1 minute in length and must not exceed 30MB in size.

The video presented is a sample submission from a student and may not contain any audio. User-submitted descriptions are provided below, describing the purpose and functionality of the content depicted in the video.

2. Written Responses

Submit one PDF file in which you respond directly to each prompt. Clearly label your responses 2a–2d in order. Your response to all prompts combined must not exceed 750 words, exclusive of the Program Code.

Program Purpose and Development

2a. Provide a written response or audio narration in your video that:

  • identifies the programming language;
  • identifies the purpose of your program; and
  • explains what the video illustrates.

(Approximately 150 words)

Sample response to 2a:

For my program, I had used language of JavaScript to create it. The purpose of my program is to make a game featuring the use of trying to find a specific number between two set numbers. The game is also supposed to help give hints to where the number is located. Once the number is found, it will pop up on the screen that the user has successfully found the number and that they have won the game. The video demonstrates the use of the program and how it works. The user is testing it out and putting random numbers in. The hints are also helping in finding the number as the user gets closer. The video also illustrates what happens on multiple attempts at guessing for the secret number and the results that will occur.

2b. Describe the incremental and iterative development process of your program, focusing on two distinct points in that process. Describe the difficulties and/or opportunities you encountered and how they were resolved or incorporated. In your description clearly indicate whether the development described was collaborative or independent. At least one of these points must refer to independent program development.

(Approximately 200 words)

Sample response to 2b:

The process of creating my program was a very large struggle that took a long period of time in creating and making it right. At the start I had troubles trying to figure out where to start my code as we had not independently created our own code in the past before. However after I a while I was able to find my footing in creating the program. My program itself was independent and I had very little help in creating my own program. This helped and hurt me at the same time as while I was able to learn a lot coding the program, my code was very small in general compared to others in this class. The main struggle I had was finding a way in creating a mystery number for my code. This took a while as I wasn't collaborating with others to find out how to. However after looking back on previous code I had created before, I was able to create my mystery number generator and solved my problem. After that, I just added on with basic code had done in the past and implemented it into my code and was successfully able to make my program.

2c. Capture and paste the program code segment that implements an algorithm (marked with an oval in section 3 below) that is fundamental for your program to achieve its intended purpose. Your code segment must include an algorithm that integrates other algorithms and integrates mathematical and/or logical concepts. Describe how each algorithm within your selected algorithm functions independently, as well as in combination with others, to form a new algorithm that helps to achieve the intended purpose of the program.

(Approximately 200 words)

Sample response to 2c:

My algorithm is able to implement many others algorithms in multiple ways. It first is able to integrate the variables by creating its own variable for guessing. After this it is able to implement other situations such as if the number is over the secret number or if the number is smaller than the secret number created by the mystery number. This is able to implement previous code created by the mystery number that I had created in my code. Also another portion of code that I created is the use of adding a chat if you win or have not gotten the mystery number. It creates an alert that pops up on your screen if you have achieved success in finding the mystery number as it will say "well done it was 'mystery number'."

The variable guess is created and set to the value of document's form's guess test's guess's value document's form's guess test's guess's value is set to the empty string start of if statement if guess equals secret document's form's guess test's prompt's value is set to the string Congratuations! joined with the value of secret and the string is correct! call alert with the string well done it was joined with the value of secret and the string for the exclamation point. speech is set to the empty string. end of if statement start of if statement if secret is greater than guess speech is set to the string larger than joined is the value of guess. end of if statement start of if statement if secret is less than guess speech is set to the string smaller than joined is the value of guess. end of if statement

This algorithm keeps track of how many of each prize has been collected. In the code just before this segment I create a list that stores the number of each prize that was collected, and set all the values of the elements to 0. I needed to integrate an algorithm for simulating one purchase with an algorithm for continuing until one of each prize is won.

The first algorithm is the set block combined with the replace block. I take the current value of a certain element in the list and add 1, to mark one more of that prize.

The second algorithm involves the repeat block that continues until I have one of each kind of prize. I needed a way to stop this loop when you have a complete set of prizes. The repeat until block has a condition "not countOfEach contains 0." In effect this allows the repeat to continue until the list contains no zeros.

2d. Capture and paste the program code segment that contains an abstraction you developed (marked with a rectangle in section 3 below). Your abstraction should integrate mathematical and logical concepts. Explain how your abstraction helped manage the complexity of your program.

(Approximately 200 words)

Sample response to 2d:

My abstraction was able to handle my program in multiple ways. It was able to hold the random number that I had created which helped make my program succeed. It also helped in creating situations of what to do when numbers are guessed. Such as holding the code of the secret number and popping up words when a specific number is shown. These concepts were created logically as previous code had helped show me the way.

The variable speech is created and assigned to the string guess my mystery number from 1 to 100 The variable guess me is created and set to a the rounded value of the random generated number between 1 and 100. Start of function process that takes the parameter secret.

3. Program Code

Capture and paste your entire program code in this section.

  • Mark with an oval the segment of program code that implements the algorithm you created for your program that integrates other algorithms and integrates mathematical and /or logical concepts.
  • Mark with a rectangle the segment of program code that represents an abstraction you developed.
  • Include comments or citations for program code that has been written by someone else.

The style tag start of the body procedure the background is set to linear-gradient with 180 degrees, sea green, and light blue) no repeat is fixed. end of style tag Start script tag with language set to java script The variable speech is created and assigned to the string guess my mystery number from 1 to 100 The variable guess me is created and set to a the rounded value of the random generated number between 1 and 100. Start of function process that takes the parameter secret. The variable guess is created and set to the value of document's form's guess test's guess's value document's form's guess test's guess's value is set to the empty string start of if statement if guess equals secret document's form's guess test's prompt's value is set to the string Congratulations! joined with the value of secret and the string is correct! call alert with the string well done it was joined with the value of secret and the string for the exclamation point. speech is set to the empty string.  end of if statement start of if statement if secret is greater than guess speech is set to the string larger than joined is the value of guess. end of if statement start of if statement if secret is less than guess speech is set to the string smaller than joined is the value of guess. end of if statement the value of document's, form's, guess test's, prompt's, value is set to speech. document's, form's, guess test's, guess's procedure focus is called. end script tag start form tag with on submit equal to the empty string and name equal to the string guess test start of center tag start of font tag with color equal to pound g g g g g, face equal to times new roman. start of bold tag with the words guess my number 1 to 100 end of bold tag end of font tag start of center tag start of input tag with type set to text, name set to prompt, size set to 31, max length set to 40 value set to the string guess my secret number from 1 to 100! start of break tag start of input tag with type set to text, name set to guess, size set to 3, max length set to 3 and value set to the empty string start input tag with type set to button, value set to guess, on click set to the return value from the call to process with parameter guess me. end of center tag