Answered step by step
Verified Expert Solution
Link Copied!

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

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 Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

Students also viewed these Databases questions

Question

please dont use chat gpt AI 1 0 . ' '

Answered: 1 week ago

Question

a neglect of quality in relationship to international competitors;

Answered: 1 week ago