Sie sind auf Seite 1von 3

Sean McCarthy

Create Project

2a. For my program, I used the language of App Inventor. The app is called Study
Session, and its purpose is to allow you to create Sets for you to study. The app
takes your input for Definitions and Terms, and then quizzes you on them. As you
get the questions correct, once you correctly answer a question 5 times, it will
remove your question from the list and quiz you on the other terms. The video
demonstrates the terms and definitions, as well as answering the questions and the
remove all feature. For the demonstration purpose, the same question (2*2 is four)
was used for all 19 questions.

2b. The process of creating the system was relatively easily accomplished, until it
came from selecting a random question and answer from the database, and
displaying it for the user to answer. I spent a lot of time working on the code, but
ultimately was not able to fix it, so I worked around the problem. Instead of Sending
the terms and definitions from the database to the Quiz screen, so instead I created
a separate question and answer display box for all of the terms and definitions, and
set the questions and answers to that.
Another issue I had was transferring a lot of code and large amounts of code
from one screen to another, so to solve this intro I only used a single screen across
the entire app, and simply turned different components visible and invisible to make
it appear to switch screens. One negative outcome of this was that the single screen
had a very large amount of code, but it ended up working out well, and the app
functioned as desired, and is easily used by the user. However if someone else
wanted to modify the code, it would be slightly more difficult for them, but it is still
do able.
2c.
checks variables
program is active, this
checks what its
are initially set to
correctly, it
0, it
program. The
variable reaches
database, as well
large number
database under the

This portion of code runs under a timer, and


every second. Every second that the
algorithm runs through every variable and
value is. This is not visible, but the variables
5, and every time you answer the question
subtracts one from the value. Once that value hits
removes the term and definition from the
portion pictured to the left shows that if the
zero, it is then removed from both the term
as the definition database. The program uses a
of if/else statements, and checks for the
tag that is equivalent to the value of the question.

2d.

My abstraction was easily able to handle my program in a large varieties of ways.


Initially before I reprogrammed the database extraction code, I had a lot of
procedures running through each other, and honestly it just made it more
convoluted. This in part led to the program not working as well as intended initially.
However after I redid the code, and simplified the procedure, this is what I was left
with. So what this portion of code (above) does, is it sets the variable Rando to a
random integer from one to the variable SubmitT which is however many terms
have been submitted. It then sets another variable (RandoT) to that same integer.

3.

Das könnte Ihnen auch gefallen