Professional Documents
Culture Documents
U7l04 Activity Guide - Parameters and Return Make
U7l04 Activity Guide - Parameters and Return Make
Step 2 - Plan
This Make project is a little different than
other ones. Instead of writing all of the code
yourself, most of it has already been written
for you. There are just three functions at the
bottom that have been designed and have
comments explaining how they should work
but the code for each function is incomplete or only works for some inputs. Read the comments for these three
functions carefully. You can also quickly read the rest of the program if you like.
In the table below record any notes for how you will build each function
findIcon()
If else that tests whether it was rock paper or scissors and returns the
image respectively
randomChoose()
decideWinner()
Uses an if else to determine the possibilities of the game and returns who
is the winner
Step 4 - Submit
Before your submit check the rubric below to make sure your program
findIcon Function The function returns The function returns The function returns The function does
the correct values for the correct values for the correct values for not return correct
all input values. most input values. some input values. values for any input
values.
randomChoose The function returns The function returns The function returns The function does
Function the correct values for the correct values for the correct values for not return correct
all input values. most input values. some input values. values for any input
values.
decideWinner The function returns The function returns The function returns The function does
Function the correct values for the correct values for the correct values for not return correct
all combinations of most combinations of some combination of values for any
inputs. inputs. inputs. combination of inputs
Code runs without No errors are Some errors are Many errors are The code does not
errors. present in the present in the present in the run.
required code. required code. required code.
Coding Comments Comments are used Comments are used Comments are Comments are not
to correctly explain to explain the present, but are not present.
the purpose and purpose and used to explain the
functionality of all functionality of most purpose or
functions. functions. functionality of any
functions.