- Define a method,
sings_fav_lyricthat takes a lyric as input and print that lyric to the console as if it's been screamed (think all caps and a bunch of exclamation points) - Call your new
sings_fav_lyricmethod, passing your favorite lyric as input. - Define a method,
calculate_volumethat takes three inputs:length,width, andheight, and returns the calculated volume. - Call this method with values of your choosing and save the output to a variable called
volume. - Define a method,
calculate_tipwhich takes a single input calledmeal_valueand returns a value equal to 20% of any given meal value. - Call this method with a value of your choosing and save the output to a variable called
tip. - Write another method
calculate_custom_tipthat takes two arguments:meal_valueandtip_percentage. Define this method such that whencalculate_custom_tip(10.00, 20)is entered into the console, it returns the string "You should tip your server 2 dollars". - Invoke your
calculate_custom_tipwith the values above and save the output to a variable calledcustom_tip_amount - Invoke this method again and again with different values, saving the output to new variables.
Last active
August 29, 2015 14:05
-
-
Save vanderhoop/b4ae35f85ae496fdd54f to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment