Create Task Plan: Saathvika, Pranavi, & Linda - samayasankuratri/flask_portfolio GitHub Wiki
Create Task Idea: Quizzes that can be implemented into the Break Time portion of our website, similar to BuzzFeed quizzes (our idea is "what greek god are you?")
Task Overview:
- Final code: Needs to be a pdf, and must include comments
- One video section: Not much explanation necessary, Purpose and function of code, No talking
- 4 written code: Data abstraction, Managing complexity, Procedural abstraction, Algorithm implementation
Written Responses:
- 15 questions about the function in code, and the video that you made
- All related to the create task project, 4 parts: Describe program, functionality, and input/output (3 qs), Show understanding of list/collection types (5 qs), Show self-made developed procedure, must include sequencing, selection, iteration, and things learned (4qs), Explanation of self-developed procedure (6 qs) Note: 750 word limit for each section should take 50-100 words
Ideas:
- Solves problem
- Enables innovation
- Express creativity
- Explore personal interests
- Complex games
- Past projects: Job finder, Music editor
Data Abstraction:
- Data Abstraction is the reduction of a particular body of data to a simplified representation of the whole. It essentially allows the programmer to reduce the amount of code they have to write by simplifying the entirety of it. Data Abstraction usually hides details of a program in order to make it easier to develop and maintain a program.
- Example of Data Abstraction
- In our quiz, we will most likely use data abstraction to set up the point system for each option (A, B, C, D, etc) for the questions in order to simplify how we will score the quizzes.
Procedural Abstraction
- Procedural Abstraction allows procedure to be used without needing to know the details of how it works (the name tells you what the procedure does)
- We will most likely to make a procedure/function that calculate the total points that the user get from the answer choices, and we can name this procedure as "calculate_total" and we can call the procedure by the name which also helps manage the complexity and reduce redundancy in code.
Managing complexity
- The code will be strictly organized.
- All javascript functions will be in a specific .js file and the code within will be organized and called multiple times.
- The Html will be neatly designed and formatted, as will the main.py.
- Each procedure that is run in the code will be coded completely separate and not tangled up in other processes.
Algorithm implementation
- There will be an algorithm that tallies up the users’ answers to the quiz and determines which god their personality is the most like.
- A numerical value will be assigned to each of the options, and different ranges of ending point values will correspond to different Greek gods.
- Either a python or javascript function.
Written Response Questions - BLACKPINK Quiz
Number | Question | Answer |
---|---|---|
3ai | Describes the overall purpose of the program | Our interactive quiz "Which BLACKPINK Member Are You?" is similar to Buzzfeed personality quiz that is for entertainment and will help users to gain knowledge about BLACKPINK, a 4-people K-pop girl group. The purpose of the program is to let the user answers the questions by choosing one of the four options under the question to see which BLACKPINK member the user's personality is the most like. |
3aii | Describes what functionality of the program is demonstrated in the video | The video demonstrates a user interacting with the quiz from top to bottom. In the video, the user is clicking and interacting with the multiple background buttons on the very top of the program. Every time the user clicks a new background button with the image on top of the button, the background image under the header above the buttons will change to the background image that the user clicked. Then, the program contains 4 questions with 4 options that the user can click on. A numerical value (1, 2, 3 or 4) is assigned to each of the options, and different ranges of ending point values will correspond to different BLACKPINK members. After the user has done answering all of the questions, the program contains a submit button which the user can click on and the program will calculate the total score that the user got and display the name and picture of the corresponding member. Below, there are three popular BLACKPINK music videos that the user can watch. On the very bottom, there is a random BLACKPINK fact generator that the user can click on and know more about BLACKPINK! |
3aiii | Describes the input and output of the program demonstrated in the video | In the video, the inputs are all the options that the user chose and clicked on when answering the questions. Then, the program will calculate the total score and different ranges of ending point values will correspond to different BLACKPINK members. So the output is the name and picture of the BLACKPINK member that the user's personality is the most like based on the user's choices. It will be display on screen after clicking the submit button. |
3bi | The first program code segment must show how data have been stored in the list. | |
3bii | The second program code segment must show the data in the same list being used, such as creating new data from the existing data or accessing multiple elements in the list, as part of fulfilling the program’s purpose. | |
3biii | Identifies the name of the list being used in this response | The list used in the code above is named "facts". |
3biv | Describes what the data contained in the list represent in your program | The data contained in the list represents 10 facts about BLACKPINK, such as what the name BLACKPINK means. |
3bv | Explains how the selected list manages complexity in your program code by explaining why your program code could not be written, or how it would be written differently, if you did not use the list | The list allows for the program to store all the facts in one location. Without the list holding the facts the program will become redundant also the facts are all pretty long. One would have to resort to using different variables to hold many different facts in which the code would be unorganized. |
3ci | The first program code segment must be a student-developed procedure that:□ Defines the procedure’s name and return type (if necessary) □ Contains and uses one or more parameters that have an effect on the functionality of the procedure □ Implements an algorithm that includes sequencing, selection, and iteration | |
3cii | The second program code segment must show where your student-developed procedure is being called in your program. | |
3ciii | Describes in general what the identified procedure does and how it contributes to the overall functionality of the program | The procedure makes it so that if your answer choices (which have certain points depending on which answer option is chosen) are in a particular range, you will receive a certain character allocated to that point range. The if statements are used in order to state which point ranges will match its respective BlackPink member. |
3civ | Explains in detailed steps how the algorithm implemented in the identified procedure works. Your explanation must be detailed enough for someone else to recreate it. | First one should set the number of correctly identified letters to 0 so that it is able to be incremented for each correct letter. Next if statements are used so that each letter of the inputted word can be compared to that of the chosen word, so one should use each letter in the randomly chosen word and equate it to each letter in the inputted word. If the letter is present in the chosen word the correctly identified letters variable should be incremented by one and the color of the tile should be assigned to a data-variable id to change the color of it accordingly. This assigns the member of the band to the point value. |
3di | Describes two calls to the procedure identified in written response 3c. Each call must pass a different argument(s) that causes a different segment of code in the algorithm to execute. | The first call is the return function and the second call function is the get element id that allows the procedure to run through the if statements and submit which member of the band you are. |
3dii | Describes what condition(s) is being tested by each call to the procedure | The program accumulates points for each answer option that is recorded. One the user clicks the "Submit" button, the program then calculates the total number of points acquired and follows through a set of if statements in order to associate the point to a member (defined by a point range). |
3diii | Identifies the result of each call | The result of the calls is the what member you would be after the user clicks on the "Submit Button." |