Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Swift Note Karen only likes apples Paul only likes oranges Assignment In the space below, Create and execute a function that makes use of parameters
Swift
Note Karen only likes apples Paul only likes oranges Assignment In the space below, Create and execute a function that makes use of parameters to: Compare a person's name to the names, "Karen" or "Paul" If the person's name is "Paul" the function should return "Hello Paul, help orange!" If the person's name is "Karen" the function should return "Hello Karen, he apple!" .If it is neither of these names, the function should return, "Hello, [person's yourself to any fruit you like!" Enter your code below and submit this playground file once you have finished: let onePerson Karen" let secondPersonPaul let thirdPerson String() 16 18 20 func whoLikesFruits(onePerson: string, secondPerson: serinst All paths through this if onePerson secondPerson t 21 print( Hello, \(onePerson), help yourself to an applet.) Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started