Activity Guide - Variables Make - Unit 4 Lesson 4
Activity Guide - Variables Make - Unit 4 Lesson 4
Step 2 - Plan
Fill in the information in the table below for each event handler
you'll need to create
downButton When pressed, will subtract a like from the current like variable
upButton When pressed, will add a like from the current like variable
Fill in the table below for each variable you'll need to create.
Variable Name What the Variable Stores
Step 4 - Submit
Before you submit, check the rubric below to make sure your program meets the requirements of the task.
Code: Event onEvents are defined onEvents are defined onEvents are defined onEvents are not
Handlers Created for all the required for most of the for some of the designed for any
buttons. required buttons. buttons. buttons.
Code: Variables Variables are defined Variables are defined One variable is There are no
to store the amount to store the amount present that stores variables which store
of likes and the of likes and the either the amount of the necessary
comments. Variables comments likes or the information for the
are named in a clear comments app to work
and understandable correctly.
way.
Code: Event All necessary Most necessary Some of the None of the
Handlers Written variables are variables are necessary variables necessary variables
updated inside of the updated inside of the are updated inside of are updated inside of
onEvents. onEvents. the onEvents. the onEvents.
Code: Output The screen correctly The screen correctly The screen correctly The screen does not
Information displays the amount displays the amount displays either the display the amount
of likes and the total of likes and the total amount of likes or of likes or the
comments. Sound comments. the some amount of comments.
plays when different comments.
buttons are clicked.
Code runs without No errors are At most one error is Some errors are Many errors are
errors. present in the code. present in the code. present in the code. present in the code.
Coding Comments Comments are used Comments are used Comments are used Comments are not
to correctly explain to correctly explain to explain the present
the purpose and the purpose and purpose and function
function of all function of most of some onEvents.
onEvents. onEvents.