You are tasked with implementing a function that checks if a piece of code is production-ready based on two criteria: test coverage and performance metrics. The function should return True if the code meets the required test coverage of at least 80% and has a performance metric (execution time) less than a specified threshold. Otherwise, return False.
test_coverage: float: A float representing the percentage of code covered by tests (0 to 100).performance_metric: float: A float representing the execution time in seconds.threshold: float: A float representing the maximum acceptable execution time in seconds.Example 1:
Input: test_coverage = 85.0, performance_metric = 0.5, threshold = 1.0
Output: True
Explanation: Test coverage is above 80% and performance metric is below the threshold.
Example 2:
Input: test_coverage = 75.0, performance_metric = 0.4, threshold = 1.0
Output: False
Explanation: Test coverage is below 80%, hence not production-ready.
0 <= test_coverage <= 1000 <= performance_metric <= 100 < threshold <= 10