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