Question: For Pyhton 3.6 Modular Design: Implement a set of functions called get_data, extract values, and calc.ratios. Function get data should prompt the user to enter

For Pyhton 3.6
Modular Design: Implement a set of functions called get_data, extract values, and calc.ratios. Function get data should prompt the user to enter a pair of integers in the same line and read the pair as a single string. For example, Enter integer pair (hit Enter to quit): 134 289 This is read as '134 289 This string should be passed into function extract.values, which is designed to return the string as a tuple of two integer values, i.e. extract values ('134 289') should return (134, 289) Finally, this tuple is passed to function calc_ratios which returns the ratio of the two values. For example, calc_ratios ((134,289)) returns 0.46366782006920415 When the second value of the tuple is zero, the ratio is not defined. In this case, the function should return None
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
