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."
octapalooza(j)-- this function takes a value j that you pass it then returns j times 8. For example, if you passed octapalooza the value 4, it would return 32.
oldEnoughToDrinkInBrazil(age)-- this function takes a value age that you pass it. If the age is greater than or equal to 18 the function returns True, otherwise it returns False. Make sure 18 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.
 You've been asked to write several functions. Here they are: yourPlaceofBirth()--

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!