Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Horse Betting The Road To Absolute Horse Racing 2

Authors: NAKAGAWA,YUKIO

1st Edition

B0CFZN219G, 979-8856410593

More Books

Students also viewed these Databases questions