Question: You've been asked to write several functions. Here they are: yourPlaceofBirth ( ) - - this function takes no parameters. It returns a string containing
You've been asked to write several functions. Here they are:
yourPlaceofBirth this function takes no parameters. It returns a string containing YOUR birthplace can be a city, state, or country. If you're not comfortable sharing this info, you can use a fictitious place like Tatooine or San Andreas. As an example, if Abrahm Lincoln wrote this function it might return the string "Kentucky."
octapaloozaj this function takes a value that you pass it then returns times For example, if you passed octapalooza the value it would return
oldEnoughToDrinkInBrazilage this function takes a value age that you pass it If the age is greater than or equal to the function returns True, otherwise it returns False. Make sure is stored as a named constant.
Your program must contain a Main function as shown in the chapter. In your Main function CALL each of your functions to demonstrate that they work properly.
Important note: Your functions themselves should not produce any output. Instead, they use the contents of their input parameters to return a value to the code that called the function. The code that called the function is the one that should be doing the output in this program, the code that calls the functions is in Main so that's the only place one should see any output statements
REMEMBER that a structured function has a maximum of one return statement.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
