U4L11_-_Activity_Guide_-_Functions_Make_(1) - Unit 4 Lesson...

  • No School
  • AA 1
  • BailiffWater5351
  • 3
  • 100% (6) 6 out of 6 people found this document helpful

This preview shows page 1 - 2 out of 3 pages.

Unit 4 Lesson 11Name(s)____kaleb williams___________________________________________ Period ___4b___ Date ___________________Activity Guide - Functions MakeStep 1 - Try the appTry many of the different options. Pay attention to what is happening onthe screen when you move the slider orchoose an item from the dropdown.When does the screen update?What happens if you choose lavenderand Lucinda Sans from the dropdowns? Trychoosing lightreen and moving the slideruntil you receive feedback.Discuss with a PartnerWhat does this app do?What are the inputs?What are the outputs?How could a function be used in thisapp?Step 2 - PlanVariables: Fill in the table below for each variable you'll need to create.Variable NameWhat the Variable Storescolorthe background color the user selectsfontFamilyChanges the fontfontSizeChanges font sizeQuote Stores the quote you put inConditionals: An if-else-if statement is used to check if certain options have been selected. Set up the conditional below using the variables you created above. Note: You can be creative here! Choose your own combinations and feedback messages. if (color == ____lightgreen___________ && fontFamily == ____Times___________ ){setText("feedbackOutput", __Great combo____________________________);} else if ( __color_____________ == ___lavender____________ && ___fontFamily____________ == ____Palantino___________ ){setText("feedbackOutput", _____great design_________________________); } else {setText("feedbackOutput",

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture