Create PT - Written Response Template: Assessment Overview and Performance Task Directions For Students
Create PT - Written Response Template: Assessment Overview and Performance Task Directions For Students
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
Prompt 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.
(Must not exceed 150 words)
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. (Must not exceed 200 words)
I had many difficulties in my app development but I overcame them. My main problem that I
had a lot of trouble with was trying to make a variable that included all my images. I tried this
but unfortunately it didn’t work. I resolved this problem by coding what I wanted the image to
do individually. Overall it was very tedious but did what I initially wanted it to do.
2c. Capture and paste a program code segment that implements an algorithm (marked with an
oval in section 3) and that is fundamental for your program to achieve its intended purpose.
This code segment must be an algorithm you developed individually on your own, must include
two or more algorithms, and must integrate 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. (Must not exceed 200 words)
Written Response
This code has math and is very important to my code. If the player collects the coin a sound
triggers and and sends a message to the player congratulating them. It involves math because it
adds 1 to the total score.
2d. Capture and paste a program code segment that contains an abstraction you developed
individually on your own (marked with a rectangle in section 3). This abstraction must
integrate mathematical and logical concepts. Explain how your abstraction helped manage the
complexity of your program. (Must not exceed 200 words)
Code Segment
var total_score2 = 0;
var total_score3 = 0;
var total_score = 0;
onEvent("coin1", "mouseover", function() {
total_score = total_score + 1;
setText("total_score", total_score);
if (total_score >= 1) {
console.log("congratulations on collecting a coin!");
playSound("sound://category_alerts/airy_bell_notification.mp3");
}
hideElement("coin1");
});
onEvent("coin2", "mouseover", function() {
total_score2 = total_score2 + (total_score && 1);
setText("total_score2", total_score2);
if (total_score2 >= 1) {
console.log("congratulations on collecting a coin!");
playSound("sound://category_alerts/airy_bell_notification.mp3");
}
hideElement("coin2");
});
onEvent("coin3", "mouseover", function() {
total_score2 = total_score2 + 1;
setText("total_score2", total_score2);
if (total_score2 >= 1) {
console.log("congratulations on collecting a coin!");
playSound("sound://category_alerts/airy_bell_notification.mp3");
}
hideElement("coin3");
});
onEvent("coin4", "mouseover", function() {
total_score3 = total_score3 + (total_score2 && 1);
setText("total_score3", total_score3);
if (total_score3 >= 1) {
console.log("congratulations on collecting a coin!");
playSound("sound://category_alerts/airy_bell_notification.mp3");
}
hideElement("coin4");
});
onEvent("coin5", "mouseover", function() {
total_score3 = total_score3 + 1;
setText("total_score3", total_score3);
if (total_score >= 1) {
console.log("congratulations on collecting a coin!");
playSound("sound://category_alerts/airy_bell_notification.mp3");
}
hideElement("coin5");
});
onEvent("coin6", "mouseover", function() {
total_score3 = total_score3 + 1;
setText("total_score3", total_score3);
if (total_score >= 1) {
playSound("sound://category_alerts/airy_bell_notification.mp3");
console.log("congratulations on collecting a coin!");
}
hideElement("coin6");
});
Written Response
This code has mathematical and logical concepts. In the code it says that if the player collects a
coin it adds 1. After a player collect another coin it adds 1 more. The score starts at but
gradually goes up after every coin. This helped my program by keeping score of how many the
coins the player earned in the level. If the player doesn’t have a certain amount of coins they
cant pass.
Export or save this document as a PDF and turn in to the AP Digital 2004Portfolio along with
your Video and Program Code (separate files).