Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please answer the qustiom using pythong code. For a thumbs up please attach a photo of your code. Prep Problem - 15 In this problem,

image text in transcribed
please answer the qustiom using pythong code. For a thumbs up please attach a photo of your code.
Prep Problem - 15 In this problem, you should write one function named get_height_category. The purpose of the function is to determine of someone is above or below average height. According to this website, average female height is 5'4" (64 inches) and average male height is 5'10" (70 inches). The function should accept two parameters. The first should be a string, specifying 'female' or 'male"and the second should be the subjects height in inches. The function should return above average if the person is taller than 5'4" or 5'10" for female/male respectively. It should return 'below average if the heights are less than or equal to those heights for female/male respectively. If male or female is not specified, the program can return "unknown average' . For the two parameters 'female and the function should return above average": For the two parameters male and 63, the function should return "below average . For the two parameters abc1239 and 60, the function should return unknown average You may call the functions in your code in order to test. However, you should remove all calls to the function before you submit to gradescope. The gradescope tests will call the functions to test them. Name the program prepis.py. Make sure that gradescope gives you the points for passing the test case

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_2

Step: 3

blur-text-image_3

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2022 Grenoble France September 19 23 2022 Proceedings Part 4 Lnai 13716

Authors: Massih-Reza Amini ,Stephane Canu ,Asja Fischer ,Tias Guns ,Petra Kralj Novak ,Grigorios Tsoumakas

1st Edition

3031264118, 978-3031264115

More Books

Students also viewed these Databases questions

Question

Explain the nature of human resource management.

Answered: 1 week ago

Question

Write a note on Quality circles.

Answered: 1 week ago

Question

Describe how to measure the quality of work life.

Answered: 1 week ago