Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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